Re: [sage-support] strange n()

2010-04-11 Thread bb
Mike Hansen schrieb: On Sat, Apr 10, 2010 at 3:37 AM, bb bblo...@arcor.de wrote: sage: n(sqrt(2.), digits=40) 1.414213562373095145474621858738828450441 sage: n(sqrt(2), digits=40) 1.414213562373095048801688724209698078570 sage: If you wanted this to be more like Maxima, the

Re: [sage-support] strange n()

2010-04-11 Thread Mike Hansen
On Sun, Apr 11, 2010 at 10:01 AM, bb bblo...@arcor.de wrote: Tnx for helping. I did some more experimentation. I dont want to bother you, but if you have some time and some pation I would be thankfull for one more explanation. Your tip works as expected, but if I use the method n() I still get

Re: [sage-support] strange n()

2010-04-11 Thread bb
Mike Hansen schrieb: On Sun, Apr 11, 2010 at 10:01 AM, bb bblo...@arcor.de wrote: Tnx for helping. I did some more experimentation. I dont want to bother you, but if you have some time and some pation I would be thankfull for one more explanation. Your tip works as expected, but if I use the

Re: [sage-support] strange n()

2010-04-11 Thread Mike Hansen
On Sun, Apr 11, 2010 at 12:47 PM, bb bblo...@arcor.de wrote: In an earlier posting (I am always thankful for any help!) you wrote: One could do a little work to get Sage's interval arithmetic to do something similar. Would be an interesting experiment. Here's a brief example sage: RIF Real

Re: [sage-support] strange n()

2010-04-10 Thread Mike Hansen
On Sat, Apr 10, 2010 at 1:02 AM, bb bblo...@arcor.de wrote: Is there any explanation? Could you be more specific in your question? Everything there looks normal to me. n(pi, 20) means to compute using 20 bits of precision. --Mike -- To post to this group, send email to

Re: [sage-support] strange n()

2010-04-10 Thread Alex Ghitza
On Sat, 10 Apr 2010 01:08:12 -0700, Mike Hansen mhan...@gmail.com wrote: On Sat, Apr 10, 2010 at 1:02 AM, bb bblo...@arcor.de wrote: Is there any explanation? Could you be more specific in your question? Everything there looks normal to me. n(pi, 20) means to compute using 20 bits of

Re: [sage-support] strange n()

2010-04-10 Thread bb
Mike Hansen schrieb: On Sat, Apr 10, 2010 at 1:02 AM, bb bblo...@arcor.de wrote: Is there any explanation? Could you be more specific in your question? Everything there looks normal to me. n(pi, 20) means to compute using 20 bits of precision. --Mike Ok, I see - the argument

Re: [sage-support] strange n()

2010-04-10 Thread Mike Hansen
On Sat, Apr 10, 2010 at 3:37 AM, bb bblo...@arcor.de wrote: sage: n(sqrt(2.), digits=40) 1.414213562373095145474621858738828450441 sage: n(sqrt(2), digits=40) 1.414213562373095048801688724209698078570 sage: If you wanted this to be more like Maxima, the appropriate thing to do would some