abs change to cabs:
y(x):=log(cabs(1/(1+exp(%i*x))))$
plot2d( y(x),[x,0.1,1])$
work with maxima 5.24.0
The following plot does not execute in recent releases of MAXIMA.
y(x):=log(abs(1/(1+exp(%i*x))))$
plot2d( y(x),[x,0.1,1])$
MAXIMA complains with "sign: argument cannot be imaginary; found %i"
but works with MAXIMA 5.20.1
abs change to cabs:
y(x):=log(cabs(1/(1+exp(%i*x))))$
plot2d( y(x),[x,0.1,1])$
work with maxima 5.24.0
Thanks alex. It works fine. However, I had some other trouble while defining my functions with cabs. For instance, the code
simp:false$
define(y(x),log(cabs(1/(1+exp(%i*x)))))$
simp:true$
y(1.0);
does not evaluate completely the numerical value.
But it works if I use ":=" to define the function. Here the code
simp:false$
y(x):=log(cabs(1/(1+exp(%i*x))))$
simp:true$
y(1.0);
evaluates perfectly. I actually need to set "simp" to "false" because the expressions I deal with in my real case are quite complicated. I need to prevent a simplification at this stage to avoid MAXIMA to start an
endless evaluation while defining my expressions.
Closing bug again (already was marked fixed).
Log in to post a comment.