Viewing a single comment thread. View all comments

Phrygiaddicted t1_iyc18ek wrote

just do long multiplication. this reduces the problem to repeated integer multiplications.

its also equivlent to his example of adding up the integer parts then you deal with the fractional part by multiply everything so that the fractional part is integral, doing the repeated addition then dividing the answer at the end by the factor you multiplied by. this is equvalent to shifting the decimal point. the point doesn't change how you approach the algorithm, and the answer in the end is still a rational fraction, not really a "single number" 0.25 isnt simpler than 1/4, its just another way to write it.

that trick wont work for irrationals though. but they aren't calculable no matter what you do so...

this is really trivial for binary multiplication, as it just reduces to shifting the number up one place across itself and adding the digits to itself IF the digit in that place is a 1; as you either add 0xthat (which is no addition) or 1xthat, (which is no multiplication). binary addition is also simple, it reduces to looking if they digits are different, in which case its 1, otherwise its 0 and u carry a 1 if theyre both 1.

    1011 (11)
   x0110 (6)
   -----
   1011  (22)
  1011   (44)
  ----
 1000010 (66)

>give me the exact value of 0.75 x 0.44, only using addition.

as for your question... we can agree integer multiplcation is trivial and can always reduce to repeted addition so i wont write it out but...

4x5 + 4x70 + 40x5 + 40x70 = 3300; put decimal place in correct 2x2=4 point position = 0.33

all of this works with rational numbers and they reduce to repeated addition. his example with pi is bogus for different reasons, and that's just because irrational and especially transcendental numbers like pi are just uncalculable; so you'd end up doing this long multiplication process forever; infact you wouldnt even get to the point of multiplying pi, because you're still working out what pi is so you can multiply it. all calculations that have ever been done are on rational numbers. "real" numbers are just symbols we manipulate and replace with approximations when a calculation is needed. they aren't real.

or you can just pretend its 22/7.

5