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.1673782795634028235837873423
while in Pari:
? sin(1.1)
%1 = 0.891207360061435339
Hello.
I do not think that is really a convention, but it is very logical because
1.1 can also be a float result given by Python. But floats and decimals are
not the same due to the ways operators act on them.
Christophe BAL
Le 28 mars 2014 10:34, "Ralf Stephan" a écrit :
> I would like to unde
On Friday, March 28, 2014 10:39:10 AM UTC+1, projetmbc wrote:
>
> I do not think that is really a convention, but it is very logical because
> 1.1 can also be a float result given by Python. But floats and decimals are
> not the same due to the ways operators act on them.
>
But then it would be m
Your last comment is good.
Maybe you can use Decimal("1.1") to avoid confusion.
Le 28 mars 2014 10:57, "Ralf Stephan" a écrit :
> On Friday, March 28, 2014 10:39:10 AM UTC+1, projetmbc wrote:
>>
>> I do not think that is really a convention, but it is very logical
>> because 1.1 can also be a fl