From: SourceForge.net <no...@so...> - 2007-09-15 15:36:31
|
Bugs item #1791405, was opened at 2007-09-10 03:36 Message generated for change (Comment added) made by dgildea You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1791405&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 - Floating point Group: None >Status: Closed >Resolution: Duplicate Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Failure to show result as a float number Initial Comment: Maxima fails to show %pi^%e as a number (correct value is 22.459...) . %e^%pi shows ok. See details below. (%i1) %e^%pi; (%o1) %e^%pi (%i2) float(%), numer; (%o2) 23.14069263277927 (%i3) %pi^%e; (%o3) %pi^%e (%i4) float(%), numer; (%o4) 3.141592653589793^%e (%i5) bug_report(); Please include the following build information with your bug report: ------------------------------------------------------------- Maxima version: 5.13.0 Maxima build date: 10:46 8/26/2007 host type: i686-pc-mingw32 lisp-implementation-type: GNU Common Lisp (GCL) lisp-implementation-version: GCL 2.6.8 ------------------------------------------------------------- You can contact me timopoho79 (at) hotmail.com ---------------------------------------------------------------------- >Comment By: Dan Gildea (dgildea) Date: 2007-09-15 11:33 Message: Logged In: YES user_id=1797506 Originator: NO This is already fixed in comm.lisp rev 1.24 - see bug 531466. (%i4) %pi^%e; (%o4) %pi^%e (%i5) float(%); (%o5) 22.45915771836104 ---------------------------------------------------------------------- Comment By: Robert Dodier (robert_dodier) Date: 2007-09-11 00:24 Message: Logged In: YES user_id=501686 Originator: NO Well, in some sense the observed behavior is broken as design. A separate flag, %enumer, turns %e into a number. %pi^%e, numer, %enumer; => 22.45915771836104 Maybe someone wants to raise the possibility of expanding the scope of numer to include turning lone %e into a number; that would probably cover a lot of the need for %enumer. ---------------------------------------------------------------------- Comment By: Barton Willis (willisbl) Date: 2007-09-10 04:57 Message: Logged In: YES user_id=895922 Originator: NO Two workarounds: (%i9) scanmap('float,%pi^%e); (%o9) 22.45915771836104 Or, use big floats: (%i11) bfloat(%pi^%e),fpprec : 18; (%o11) 2.24591577183610455b1 Thanks for the report. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=1791405&group_id=4933 |