From: SourceForge.net <no...@so...> - 2007-06-09 22:34:57
|
Bugs item #1734231, was opened at 2007-06-09 17:34 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=1734231&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: 2 Private: No Submitted By: Barton Willis (willisbl) Assigned to: Barton Willis (willisbl) Summary: even / odd functions with matrix args Initial Comment: For a declared even function, I think Maxima uses mminusp to decide when to apply the even function rule. This scheme sometimes fails: (%i8) declare(f,evenfun)$ (%i9) f(matrix([-a])) - f(matrix([a])); (%o9) f(matrix([-a]))-f(matrix([a])) <-- should be 0. The trig functions use a different scheme. This method works for matrix arguments (%i10) cos(matrix([-a])); (%o10) cos(matrix([a])) I think Maxima should uniformly use the even / odd function rule code that is in trigi.lisp. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1734231&group_id=4933 |