1. Re[2]: Maybe offtopic maybe not

Thanks very much.. and thanks also for 1000 decimal pi

1. How can I find the near-to-exact value of pi in decimal mode
(the algorithm)?

2. Can eu use a more value than using 8byte floating point but not
using string numbers?

>> In Windows calculator (calc.exe), (scientific mode)
>> if we click on "pi" the display is:
3.1415926535897932384626433832795
>> Then click "-", and select Edit/Copy. then select Edit/Paste.
>>
>> So 3.1415926535897932384626433832795 subtract
>> 3.141592653589793238462643383279 (no "5" in the display).
>>
>> then click "=".
>>
>> I get the result is 5.0288419716939931148196659300057e-31
>>
>> and so on ...

r> The correct answer up to 10e-62 is:
r> 5.0288419716939937510582097494459e-31
r> in comparison to your result:
r> 5.0288419716939931148196659300057e-31

r> See the difference?! So far to accuracy.

r> Have a nice day, Rolf

r> PS:

r> If you want to find it out yourself, here is PI up to about 1000
decimal
r> digits. You can never represent the true value of PI by decimal
r> numbers!

r> Here are the first 1000 digits of PI in decimal representation
(but what
r> for?):

r>
182332!
05903595386938

new topic     » topic index » view message » categorize

2. Re: Re[2]: Maybe offtopic maybe not

Dear  aku at inbox.as:

Try please:

http://members.aol.com/jcmiura/eu/bignum.zip
http://members.aol.com/EnjoyCruz/pi.zip
http://members.aol.com/robertc538/fastpi.zip
http://www.RapidEuphoria.com/pi.zip

http://www.RapidEuphoria.com/archive2.htm#MATH

Regards,
Igor Kachan
kinz at peterlink.ru

new topic     » goto parent     » topic index » view message » categorize

3. Re: Re[2]: Maybe offtopic maybe not

Hi, i've got a PI calculation example.

atom a,b
a = 0
b = 0.5

for i=1 to 50 do
    a = (a+b)/2.0
    b = sqrt(a * b)
end for
printf(1,"Pi is between %1.15f and %1.15f",{1/a,1/b})

Euphoria calculate precise only for 15 num, so for better results you should
use some string-math lib
----- Original Message -----
From: <aku at inbox.as>
To: EUforum <EUforum at topica.com>
Sent: Saturday, February 24, 2001 3:23 PM
Subject: Re[2]: Maybe offtopic maybe not


> Thanks very much.. and thanks also for 1000 decimal pi
>
> 1. How can I find the near-to-exact value of pi in decimal mode
> (the algorithm)?
>
> 2. Can eu use a more value than using 8byte floating point but not
> using string numbers?
>
> >> In Windows calculator (calc.exe), (scientific mode)
> >> if we click on "pi" the display is:
> 3.1415926535897932384626433832795
> >> Then click "-", and select Edit/Copy. then select Edit/Paste.
> >>
> >> So 3.1415926535897932384626433832795 subtract
> >> 3.141592653589793238462643383279 (no "5" in the display).
> >>
> >> then click "=".
> >>
> >> I get the result is 5.0288419716939931148196659300057e-31
> >>
> >> and so on ...
>
> r> The correct answer up to 10e-62 is:
> r> 5.0288419716939937510582097494459e-31
> r> in comparison to your result:
> r> 5.0288419716939931148196659300057e-31
>
> r> See the difference?! So far to accuracy.
>
> r> Have a nice day, Rolf
>
> r> PS:
>
> r> If you want to find it out yourself, here is PI up to about 1000
> decimal
> r> digits. You can never represent the true value of PI by decimal
> r> numbers!
>
> r> Here are the first 1000 digits of PI in decimal representation
> (but what
> r> for?):
>
> r>
> 3.14159265358979323846264338327950288419716939937510582097494459230781
> 6406286208998628034825342117067982148086513282306647093844609550582231
> 7253594081284811174502841027019385211055596446229489549303819644288109
> 7566593344612847564823378678316527120190914564856692345909920711885680
> 6516745194252854340959627985918823367099253708522218099226061020351229
> 8858741629348689969254359759624501683239353355351895852782424758068007
> 8502481394402283881106920871608726820020934572018968636931658375809822
> 1627804455422443873631055152992049634158255605205312021149823609410593
> 9115928417045405995477288565574268262692573313250384623122091637103189
> 4801194242055888625009613721652458361396467382283284953533397595832902
> 2677941816296816773761854187949046809629060871953153676882948881313071
> 6809611742825522362525133395300640228247894863983210031746518916943692
> 7950258513980538250718884535622353504323220464393823305462438562148108
> 5238376971713319715872103372384480622143909073929039958541935685951950
> 182332!
> 05903595386938
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu