Re: A good maths parser
Posted: Tue Dec 29, 2009 10:35 am
Hi ,
A simple solution came to my mind . It may be flawed however . We know that 0.9999999999999999.... ( followed by infinite number of 9) is 1 itself .
Proof .
0.9999999999... = 0.9 * 10^0 + 0.9 * 10 ^ -1 + 0.9 * 10 ^ -2 ...
ie it represents a Geometric Progression with 10 ^ -1 as common factor . Sum of a Infinite geometric progression is a / (1 -r) where a = first term , r = common factor where r < 1 , if r >= 1 then the series is divergent and the sum is infinite .
Sum = 0.9 / ( 1 - 10 ^ -1 ) = 0.9 / ( 1 - 0.1) = 1 ( hence proved ) . Therefore when there are good number of 9s after the decimal point we can aproximate it as a whole number .
So ( 1 / 3) * 3 = 0.9999999999... , would approximated as a 1 ( Say We consider only 5 nines past the decimal )
similary ( 2 / 3 ) * 3 = 0.666... * 3 = 1.999.....8
= 2 ( Say we consider only 5 nines past the decimal )
--Thomas
A simple solution came to my mind . It may be flawed however . We know that 0.9999999999999999.... ( followed by infinite number of 9) is 1 itself .
Proof .
0.9999999999... = 0.9 * 10^0 + 0.9 * 10 ^ -1 + 0.9 * 10 ^ -2 ...
ie it represents a Geometric Progression with 10 ^ -1 as common factor . Sum of a Infinite geometric progression is a / (1 -r) where a = first term , r = common factor where r < 1 , if r >= 1 then the series is divergent and the sum is infinite .
Sum = 0.9 / ( 1 - 10 ^ -1 ) = 0.9 / ( 1 - 0.1) = 1 ( hence proved ) . Therefore when there are good number of 9s after the decimal point we can aproximate it as a whole number .
So ( 1 / 3) * 3 = 0.9999999999... , would approximated as a 1 ( Say We consider only 5 nines past the decimal )
similary ( 2 / 3 ) * 3 = 0.666... * 3 = 1.999.....8
= 2 ( Say we consider only 5 nines past the decimal )
--Thomas