[sage-devel] Re: Why lim goes wrong

2008-08-24 Thread Ondrej Certik
On Thu, Aug 21, 2008 at 5:11 PM, William Stein <[EMAIL PROTECTED]> wrote: > On Thu, Aug 21, 2008 at 8:09 AM, William Stein <[EMAIL PROTECTED]> wrote: >> On Thu, Aug 21, 2008 at 4:44 AM, Andelf <[EMAIL PROTECTED]> wrote: >>> I am a starter, so I don't understand why this goes wrong >>> >>> I typed:

[sage-devel] Re: Why lim goes wrong

2008-08-22 Thread Andelf
On Thu, Aug 21, 2008 at 11:11 PM, William Stein <[EMAIL PROTECTED]> wrote: > > On Thu, Aug 21, 2008 at 8:09 AM, William Stein <[EMAIL PROTECTED]> wrote: > > On Thu, Aug 21, 2008 at 4:44 AM, Andelf <[EMAIL PROTECTED]> wrote: > >> I am a starter, so I don't understand why this goes wrong > >> > >> I

[sage-devel] Re: Why lim goes wrong

2008-08-21 Thread Jason Merrill
On Aug 21, 7:44 am, Andelf <[EMAIL PROTECTED]> wrote: > I am a starter, so I don't understand why this goes wrong > > I typed: > > x = var('x') > f = log(2+sqrt(arctan(x)*sin(1/x))) > lim(f, x=0) > > and got: > Traceback (click to the left for traceback) > ... > Is sin(1/x)*atan(x) positive or zer

[sage-devel] Re: Why lim goes wrong

2008-08-21 Thread Robert Dodier
On Aug 21, 9:09 am, "William Stein" <[EMAIL PROTECTED]> wrote: > Use the assume command, as illustrated below. You'll eventually get log(2): Looks like this is fixed in more recent versions of Maxima. With current 5.16.2: limit (log (2 + sqrt (atan (x) * sin (1/x))), x, 0); => log(2) (No que

[sage-devel] Re: Why lim goes wrong

2008-08-21 Thread William Stein
On Thu, Aug 21, 2008 at 8:09 AM, William Stein <[EMAIL PROTECTED]> wrote: > On Thu, Aug 21, 2008 at 4:44 AM, Andelf <[EMAIL PROTECTED]> wrote: >> I am a starter, so I don't understand why this goes wrong >> >> I typed: >> >> x = var('x') >> f = log(2+sqrt(arctan(x)*sin(1/x))) >> lim(f, x=0) >> >>

[sage-devel] Re: Why lim goes wrong

2008-08-21 Thread William Stein
On Thu, Aug 21, 2008 at 4:44 AM, Andelf <[EMAIL PROTECTED]> wrote: > I am a starter, so I don't understand why this goes wrong > > I typed: > > x = var('x') > f = log(2+sqrt(arctan(x)*sin(1/x))) > lim(f, x=0) > > and got: > Traceback (click to the left for traceback) > ... > Is sin(1/x)*atan(x) po