Jump to content

Pi: Difference between revisions

126 bytes removed ,  8 months ago
no edit summary
imported>Chinhouse
No edit summary
imported>Chinhouse
No edit summary
Line 3,955:
 
=={{header|MiniScript}}==
Calculate pi using the Rabinowitz-Wagon algorithm
This implementation is for use with [http://miniscript.org/MiniMicro Mini Micro]. It uses the Rabinowitz-Wagon algorithem.
<syntaxhighlight lang="miniscript">//digits Calculate= piinput("Enter usingnumber theof Rabinowitz-Wagondigits algorithmto calculate after decimal point: ").val
digits = input("Enter number of digits to calculate after decimal point: ").val
// I've seen variations of this "precision" calculation from
// 10 * digits
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.