On Tue, Aug 26, 2008 at 5:41 AM, Simon King <[EMAIL PROTECTED]> wrote:
>
> Dear all,
>
> On Aug 26, 2:28 pm, "Philippe Saade" <[EMAIL PROTECTED]> wrote:
>> var('x')
>> P = taylor(exp(x),x,0.21,3)
>> P.coeffs(x)
>
> There occurs a TypeError, and it says
>  Maxima encountered a Lisp error:
>  EVAL: undefined function LSH
>
> Am i right in guessing that "LSH" is a mis-spelling of "LHS" somewhere
> in the code of the maxima interface?

This is not a bug in the maxima interface.  It is a bug in Maxima itself,
as you can see from the log at the end of this message.

This already works fine in the new Pynac-based symbolic code, which
will replace the old sage symbolics soon, so you might want to point
this out if you open a ticket.

Requires a currently optional package:

sage: var('x',ns=1)
x
sage: P = exp(x).series(x==0.21,3)
sage: [P.coeff(x,i) for i in range(3)]
[1.23367805995674, 1.23367805995674, 0.616839029978372]

Illustration of the Maxima bug:
------------
(%i6) P : taylor(exp(x),x,0.21,3);

`rat' replaced 0.21 by 21/100 = 0.21

`rat' replaced 0.21 by 21/100 = 0.21
                                                   1/100 21           2
            1/100 21      1/100 21              (%e     )   (x - 0.21)
(%o6)/T/ (%e     )   + (%e     )   (x - 0.21) + -----------------------
                                                           2
                                                   1/100 21           3
                                                (%e     )   (x - 0.21)
                                              + ----------------------- + . . .
                                                           6
(%i7) load(coeflist);
(%o7) /Users/was/s/local/share/maxima/5.13.0/share/contrib/format/coeflist.lisp
(%i8) coeffs(P,x);
Maxima encountered a Lisp error:


EVAL: undefined function LSH

Automatically continuing.
To reenable the Lisp debugger set *debugger-hook* to nil.

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to