rtoy / maxima

A Clone of Maxima's repo
Other
0 stars 0 forks source link

(1/3)^1.5-3^(-1.5) neq '0' ; R5.12.99R1 #3085

Closed rtoy closed 1 week ago

rtoy commented 1 week ago

Imported from SourceForge on 2024-07-07 13:38:51 Created by *anonymous on 2008-08-04 11:16:56 Original: https://sourceforge.net/p/maxima/bugs/1470


(%i1) (1/3)^1.5-3^(-1.5); (%o1) -5.5511151231257827*10^-17

Should be '0', innit ?

bug_report()$The Maxima bug database is available at http://sourceforge.net/tracker/?atid=104933&group\_id=4933&func=browseSubmit bug reports by following the 'Submit New' link on that page.Please include the following build information with your bug report:-------------------------------------------------------------Maxima version: 5.12.99rc1Maxima build date: 13:26 8/5/2007host type: i686-pc-mingw32lisp-implementation-type: GNU Common Lisp (GCL)lisp-implementation-version: GCL 2.6.8-------------------------------------------------------------The above information is also available from the Maxima function build_info().(%i3)

rtoy commented 1 week ago

Imported from SourceForge on 2024-07-07 13:38:52 Created by rtoy on 2008-08-04 14:36:39 Original: https://sourceforge.net/p/maxima/bugs/1470/#057b


Logged In: YES user_id=28849 Originator: NO

Because of the floating point numbers in your expression, you are using floating-point arithmetic. Round-off errors in computing 1/3, and in raising a number to the 1.5 and -1.5 powers is causing the problem.

You probably wanted (1/3)^(3/2)-3^(-3/2), which maxima does simplify to 0.

Marking this as pending/invalid, and changing category to simplification.

If you disagree with this analysis, please update.

rtoy commented 1 week ago

Imported from SourceForge on 2024-07-07 13:38:56 Created by sf-robot on 2008-08-19 02:20:12 Original: https://sourceforge.net/p/maxima/bugs/1470/#c9fc


rtoy commented 1 week ago

Imported from SourceForge on 2024-07-07 13:39:00 Created by sf-robot on 2008-08-19 02:20:12 Original: https://sourceforge.net/p/maxima/bugs/1470/#ef50


Logged In: YES user_id=1312539 Originator: NO

This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker).