From: SourceForge.net <no...@so...> - 2006-01-13 13:34:35
|
Bugs item #1404754, was opened at 2006-01-14 00: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=1404754&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: David Billinghurst (billingd) Assigned to: Nobody/Anonymous (nobody) Summary: bfloat(1.0*%i) is %i rather than 1.0b0*%i Initial Comment: With cvs maxima of 20060114 (%i18) bfloat(1.0*%i); Warning: Float to bigfloat conversion of 1.0 (%o18) %i The simplification to %i upsets numerical evaluation of functions. The behaviour was changed for floats recently. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1404754&group_id=4933 |
From: SourceForge.net <no...@so...> - 2006-01-13 14:04:16
|
Bugs item #1404754, was opened at 2006-01-13 08:34 Message generated for change (Comment added) made by rtoy You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1404754&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: David Billinghurst (billingd) Assigned to: Nobody/Anonymous (nobody) Summary: bfloat(1.0*%i) is %i rather than 1.0b0*%i Initial Comment: With cvs maxima of 20060114 (%i18) bfloat(1.0*%i); Warning: Float to bigfloat conversion of 1.0 (%o18) %i The simplification to %i upsets numerical evaluation of functions. The behaviour was changed for floats recently. ---------------------------------------------------------------------- >Comment By: Raymond Toy (rtoy) Date: 2006-01-13 09:04 Message: Logged In: YES user_id=28849 I agree that we should leave 1.0*%i as 1.0*%i. I think the fix is in timesbigfloat in float.lisp: (return (cond ((equal nfans 1) fans) ((equal fans tst) nfans) (t (simplify (list '(mtimes) fans nfans))))))) The test (equal fans tst) should be removed. It checks to see if the product of all the bigfloats is equal to 1 and returns everything else. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1404754&group_id=4933 |
From: SourceForge.net <no...@so...> - 2006-01-15 00:27:35
|
Bugs item #1404754, was opened at 2006-01-14 00:34 Message generated for change (Comment added) made by billingd You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1404754&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: David Billinghurst (billingd) Assigned to: Nobody/Anonymous (nobody) Summary: bfloat(1.0*%i) is %i rather than 1.0b0*%i Initial Comment: With cvs maxima of 20060114 (%i18) bfloat(1.0*%i); Warning: Float to bigfloat conversion of 1.0 (%o18) %i The simplification to %i upsets numerical evaluation of functions. The behaviour was changed for floats recently. ---------------------------------------------------------------------- >Comment By: David Billinghurst (billingd) Date: 2006-01-15 11:27 Message: Logged In: YES user_id=365569 Fixed in float.lisp rev 1.23. Test case added to rtest16.mac. ---------------------------------------------------------------------- Comment By: Raymond Toy (rtoy) Date: 2006-01-14 01:04 Message: Logged In: YES user_id=28849 I agree that we should leave 1.0*%i as 1.0*%i. I think the fix is in timesbigfloat in float.lisp: (return (cond ((equal nfans 1) fans) ((equal fans tst) nfans) (t (simplify (list '(mtimes) fans nfans))))))) The test (equal fans tst) should be removed. It checks to see if the product of all the bigfloats is equal to 1 and returns everything else. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1404754&group_id=4933 |