Le 21/02/2016 20:40, John Cremona a écrit :
Try RealField(500).pi() and similar.
Yes, it works... but my small piece of code should also give correct
results...
thanks.
t.
On 21 Feb 2016 18:10, "Thierry Dumont" mailto:tdum...@math.univ-lyon1.fr>> wrote:
I have students who want to compu
Try RealField(500).pi() and similar.
On 21 Feb 2016 18:10, "Thierry Dumont" wrote:
> I have students who want to compute decimals of pi...so, what can we do
> with RealField(n) ?
> I make the following script (pi.sage):
>
>
> for p in [2..10]:
> R=RealField(10^p)
>
I have students who want to compute decimals of pi...so, what can we do
with RealField(n) ?
I make the following script (pi.sage):
for p in [2..10]:
R=RealField(10^p)
pii=4*atan(R(1))
print p,R,pii
Then, using sage 7.0 or 7.1.beta4: