rtoy / maxima

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

rectform fails with float/numer flags #3058

Closed rtoy closed 3 months ago

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-07 12:40:44 Created by macrakis on 2004-04-23 16:08:23 Original: https://sourceforge.net/p/maxima/bugs/562


rectform(log(-%i)) => -%i*%pi/2 OK float(rectform(log(-%i))) => -1.57 * %i OK

rectform(log(-%i)),numer => 4.71 * %i NO!

rectform(log(-%i)),float => fatal error

The problem is the function 2pistrip.

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-07 12:40:45 Created by robert_dodier on 2006-07-29 06:20:04 Original: https://sourceforge.net/p/maxima/bugs/562/#f013


Logged In: YES user_id=501686

In 5.9.3cvs:

rectform(log(-%i)),numer; => - 1.570796326794897 %i (OK)

rectform(log(-%i)),float; => 1.5 %i %pi (OOPS)

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-07 12:40:48 Created by robert_dodier on 2006-07-29 06:20:04 Original: https://sourceforge.net/p/maxima/bugs/562/#15b1


rtoy commented 3 months ago

Imported from SourceForge on 2024-07-07 12:40:52 Created by dgildea on 2009-02-24 21:58:28 Original: https://sourceforge.net/p/maxima/bugs/562/#a781


rtoy commented 3 months ago

Imported from SourceForge on 2024-07-07 12:40:55 Created by dgildea on 2009-02-24 21:58:28 Original: https://sourceforge.net/p/maxima/bugs/562/#7da7


Fixed in rpart.lisp rev 1.16

(%i4) rectform(log(-%i)); (%o4) -%i*%pi/2

(%i5) float(rectform(log(-%i))); (%o5) -1.570796326794897*%i

(%i6) rectform(log(-%i)),numer; (%o6) -1.570796326794897*%i

(%i7) rectform(log(-%i)),float; (%o7) -0.5*%i*%pi