Content deleted Content added
Show complex multiply summary and FOIL table |
Updating page with a relatively new multiplication algorithm |
||
Line 296:
| accessdate =
}}</ref>
== Cheprasov Algorithm ==
The Cheprasov <ref>Cheprasov, Artem. ''On a New Method of Multiplication and Shortcuts''. Scotts Valley: Createspace, 2010'. Print.</ref> method of multiplication can be applied for any n digit number multiplied by any other n digit number and may involve negative steps even if two positive numbers are multiplied.
The basic algorithm, as best exemplified in a ''2'' • ''2'' multiplication problem, is as follows:
: Step 1 = (t <sub>1</sub> - u <sub>1</sub>) • u <sub>2</sub>
: Step 2 = u <sub>1</sub> • t <sub>2</sub>
: Step 3 = (u <sub>1</sub> • u <sub>2</sub>) + t <sub>(u <sub>1</sub> • u <sub>2</sub>) </sub>
Step 3 first multiplies both units digits together to reach an initial answer. That initial answer’s tens digits (t <sub>(u <sub>1</sub> • u <sub>2</sub>)</sub>) is added back to step 3’s initial answer.
Steps 1-3 are then added together to reach a sum.
Now the units digit to step 3’s initial answer to: (u <sub>1</sub> • u <sub>2</sub>) is attached to the end of the sum of steps 1-3. Step 4’s answer is literally attached (“@”), not added, to the sum of steps 1-3.
: Step 4 = Sum @ u <sub>(u <sub>1</sub> • u <sub>2</sub>)
Finally this number is taken and the following is added to it:
: Step 5 = (T <sub>1</sub> • T <sub>2</sub>)
For example, in the following problem: 79 • 26, by assigning subscripts of 1 to 79 and subscripts of 2 to 26, we would reach the answer as follows:
: Step 1 = (7 - 9) • 6 = -12
: Step 2 = 9 • 2 = 18
: Step 3 = (9 • 6) = 54 + 5 = 59
Steps 1-3 are added together to reach a sum of 65.
: Step 4 = 65@4 = 654
: Step 5 = 70 • 20 = 1400 + 654 = 2054
The reverse, where subscripts of 1 are assigned to 26 and subscripts of 2 are assigned to 79 would yield the same answer but with different results to each intermediary step.
As the n digit multiplication problem grows to ever larger numbers, the number of possible combinations one can use to reach the same answer grows as well; meaning the user can literally pick and choose the easiest and fastest route to reach the answer to each multiplication problem according to their own specific needs at the time.
For example, using the Cheprasov algorithm, a 3 digit • 4 digit multiplication problem yields a total of 6 different combinations one can use to reach the same result using the same exact algorithm but through different routes.
== Fast multiplication algorithms for large inputs ==
|