From: SourceForge.net <no...@so...> - 2008-04-19 16:32:01
|
Bugs item #1929287, was opened at 2008-03-30 05:34 Message generated for change (Comment added) made by robert_dodier You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1929287&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 - Simplification Group: None Status: Open Resolution: None Priority: 4 Private: No Submitted By: Barton Willis (willisbl) Assigned to: Nobody/Anonymous (nobody) Summary: 0.0 + [0] ---> [0] Initial Comment: OK: (%i1) 0.0 + 0; (%o1) 0.0 Not OK; (%o2) should be [0.0], not [0] (%i2) 0.0 + [0]; (%o2) [0] Also, 0.0b0 + [0] ---> [0]. Matrix addition has the same bug: (%i6) 0.0 + matrix([0,0]); (%o6) matrix([0,0]) ---------------------------------------------------------------------- >Comment By: Robert Dodier (robert_dodier) Date: 2008-04-19 10:32 Message: Logged In: YES user_id=501686 Originator: NO I'm guessing that the behavior 0.0 + [0] => [0] comes from the same place as 0.0 + foo => foo, 0.0 + foo(x) => foo(x). Maybe we should disallow the simplification (inexact zero) + (whatever) => (whatever). Not sure what we should do at this point. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1929287&group_id=4933 |