From: SourceForge.net <no...@so...> - 2005-12-19 15:54:55
|
Bugs item #1385271, was opened at 2005-12-19 08:54 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1385271&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: Robert Dodier (robert_dodier) Assigned to: Nobody/Anonymous (nobody) Summary: plot2d plotting fcn by name fails on many built-in functions Initial Comment: plot2d (fn_name, ...) works if the function in question is defined in Maxima by := or define, or in Lisp by DEFUN or DEFMFUN. However, if it is defined by DEFMSPEC or it is a simplifying function, plot2d complains "Undefined function". COERCE-FLOAT-FUN in src/plot.lisp checks FBOUNDP (catches DEFUN/DEFMFUN) and looks for the MEXPR property (catches :=/define). Failing to catch DEFMSPEC isn't a big deal (although for consistency we should do it), but not catching simplifying functions is a problem. For example plot2d (sin, [x, 0, %pi]) fails w/ "Undefined function" although my_sin(x) := sin(x); plot2d (my_sin, [x, 0, %pi]); succeeds. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1385271&group_id=4933 |
From: SourceForge.net <no...@so...> - 2006-03-28 15:23:03
|
Bugs item #1385271, was opened at 2005-12-19 08:54 Message generated for change (Comment added) made by robert_dodier You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1385271&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: Closed >Resolution: Fixed Priority: 5 Submitted By: Robert Dodier (robert_dodier) Assigned to: Nobody/Anonymous (nobody) Summary: plot2d plotting fcn by name fails on many built-in functions Initial Comment: plot2d (fn_name, ...) works if the function in question is defined in Maxima by := or define, or in Lisp by DEFUN or DEFMFUN. However, if it is defined by DEFMSPEC or it is a simplifying function, plot2d complains "Undefined function". COERCE-FLOAT-FUN in src/plot.lisp checks FBOUNDP (catches DEFUN/DEFMFUN) and looks for the MEXPR property (catches :=/define). Failing to catch DEFMSPEC isn't a big deal (although for consistency we should do it), but not catching simplifying functions is a problem. For example plot2d (sin, [x, 0, %pi]) fails w/ "Undefined function" although my_sin(x) := sin(x); plot2d (my_sin, [x, 0, %pi]); succeeds. ---------------------------------------------------------------------- >Comment By: Robert Dodier (robert_dodier) Date: 2006-03-28 08:22 Message: Logged In: YES user_id=501686 Fixed by r1.62 of src/plot.lisp -- COERCE-FLOAT-FUN extended to catch simplifying functions, DEFMSPEC, Maxima macros, and operator names. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1385271&group_id=4933 |