rtoy / maxima

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

rectform(erf(2.0*(1+%i)) => big mess #1327

Open rtoy opened 3 months ago

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-04 09:50:23 Created by macrakis on 2021-07-17 18:21:59 Original: https://sourceforge.net/p/maxima/bugs/3813


rectform(erf(2.0*(1+%i)));
   =>  (erf(2.0*(%i+1))+erf(2.0*(1-%i)))/2-(erf(2.0*(1-%i))-erf(2.0*(%i+1)))/2

rather than

0.1272916294631408*%i+1.151310866398069

Maxima 5.45.1 SBCL 2.0.0 Windows 11

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-04 09:50:24 Created by macrakis on 2021-07-17 18:22:37 Original: https://sourceforge.net/p/maxima/bugs/3813/#a52f


Diff:


--- old
+++ new
@@ -1,6 +1,10 @@
+~~~
 rectform(erf(2.0*(1+%i)));
    =>  (erf(2.0*(%i+1))+erf(2.0*(1-%i)))/2-(erf(2.0*(1-%i))-erf(2.0*(%i+1)))/2
+~~~

 rather than

-0.1272916294631408*%i+1.151310866398069
+``0.1272916294631408*%i+1.151310866398069``
+
+Maxima 5.45.1 SBCL 2.0.0 Windows 11
rtoy commented 3 months ago

Imported from SourceForge on 2024-07-04 09:50:28 Created by villate on 2021-07-18 11:52:58 Original: https://sourceforge.net/p/maxima/bugs/3813/#0c97


Notice that the following two commands work fine:

rectform(erf(expand(2.0*(1+%i))));
rectform(erf(2.0+%i*2.0));
rtoy commented 3 months ago

Imported from SourceForge on 2024-07-04 09:50:31 Created by macrakis on 2021-07-19 21:56:15 Original: https://sourceforge.net/p/maxima/bugs/3813/#0c97/95e3


Those work fine even without the rectform. That's the point -- rectform should be applied to the arguments of erf.