On Friday, March 28, 2014 2:34:55 AM UTC-7, Ralf Stephan wrote:
>
> while in Pari:
> ? sin(1.1)
> %1 = 0.89120736006143533995180257787170353832
> ? sin(11/10)
> %2 = 0.89120736006143533995180257787170353832
>

Pari works with multiprecision by default, so you're getting more digits 
here:

? precision(1.1)
 %18 = 38
? 10.0^39+1.0-10.0^39
%23 = 0.E1

so you're working with more precision than you might expect (this is on a 
64-bit machine. The defaults on 32 bit are different)

Furthermore, pari will increase number of digits it keeps track of under 
some conditions:

? precision(1.0+10^60)
%24 = 115

It's certainly not the case that 1.1 is some kind of decimal or rational in 
pari:

? type(1.1)
%25 = "t_REAL"

and t_REAL is a binary float type (see docs).

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to