[sage-support] Re: if I input 1.1, why is it real not rational?

2014-03-28 Thread kcrisman
I think that Ralf's point is the following print (4.001^2).n(300) print ((4001/1000)^2).n(300) 16.0080013699597073136828839778900146484375 16.00800100 print sqrt(4.001

[sage-support] Re: if I input 1.1, why is it real not rational?

2014-03-28 Thread Nils Bruin
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: ? precis

[sage-support] Re: if I input 1.1, why is it real not rational?

2014-03-28 Thread Ralf Stephan
On Friday, March 28, 2014 10:34:55 AM UTC+1, Ralf Stephan wrote: > > I would like to understand Sage behaviour better. I just found out that > Sage is different from Pari when it comes to user input of values: > > sage: Ei(1.1).n(100) > 2.1673782795634028985887198360 > sage: Ei(11/10).n(100) > 2