Menu

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

None
open
nobody
5
2021-07-19
2021-07-17
No
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

Discussion

  • Stavros Macrakis

    • Description has changed:

    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
    
     
  • Jaime E. Villate

    Notice that the following two commands work fine:

    rectform(erf(expand(2.0*(1+%i))));
    rectform(erf(2.0+%i*2.0));
    
     
    • Stavros Macrakis

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

       

Log in to post a comment.