From: SourceForge.net <no...@so...> - 2006-06-26 17:13:55
|
Bugs item #604850, was opened at 2002-09-04 19:45 Message generated for change (Settings changed) made by robert_dodier You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=604850&group_id=4933 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: Lisp Core Group: None Status: Open Resolution: None Priority: 5 Submitted By: Raymond Toy (rtoy) Assigned to: Nobody/Anonymous (nobody) >Summary: pade produces an error when taylor expr is freeof variable Initial Comment: The second example given in the documentation for pade doesn't work. With clisp, cmucl,and gcl, it produces an error that 134217728 is not a list. ---------------------------------------------------------------------- Comment By: Robert Dodier (robert_dodier) Date: 2005-02-27 12:04 Message: Logged In: YES user_id=501686 The problem with the example in the documentation seems to stem from this: the polynomial (1st argument) in taylor is written in terms of X (majuscule), but the variable (2nd argument) is said to be x (minuscule). Here is a simpler example that shows the same behavior: (%i1) t: taylor (1 + X, x, 0, 1); (%o1)/T/ X + 1 + . . . (%i2) pade (t, 1, 1); Maxima encountered a Lisp error: Type-error in KERNEL::OBJECT-NOT-LIST-ERROR-HANDLER: 1 is not of type LIST Now redo this example, but with the variable declared appropriately in taylor: (%i3) t: taylor (1 + X, X, 0, 1); (%o3)/T/ 1 + X + . . . (%i4) pade (t, 1, 1); 1 (%o4) [- -----, X + 1] X - 1 Replacing "x" by "X" in the example so that it reads "ff: taylor (<stuff>, X, 0, 10);" makes the calls to pade succeed. This behavior is a bug of some kind, although I don't know if it's a bug in pade or somewhere else. I have fixed the example in doc/info/Series.texi so that it succeeds. Maxima version: 5.9.1.1cvs Maxima build date: 11:16 2/26/2005 host type: i686-redhat-linux-gnu lisp-implementation-type: CLISP lisp-implementation-version: 2.31 (released 2003-09-01) Same behavior: Maxima version: 5.9.1 Maxima build date: 21:24 9/23/2004 host type: i686-pc-linux-gnu lisp-implementation-type: CMU Common Lisp lisp-implementation-version: 19a ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=604850&group_id=4933 |