On Sun, 17 Apr 2011, razif razali wrote:
< Dear all maxima user,
< it try to plot this equation, but i failed to...i dunno why i failed to plot this expression, hope someone can look into it
<
< here what i done,
<
< (%i1)?((%e^(- sqrt(sqrt(73) - 10)*(3*%pi/8)*1 - sqrt(- sqrt(73) - 10)*(3*%pi/8)*1)*(sqrt(sqrt(73) - 10)*((- 5*2^(3/2)*sqrt(3)*sqrt(73) - 73*sqrt(2)*sqrt(3))*(%e^(-x/2)*(sqrt(x))^3/sqrt(3!))*%e^(2*sqrt(sqrt(73) -
< 10)*(3*%pi/8)*1 + sqrt(- sqrt(73) - 10)*(3*%pi/8)*1)+ (5*2^(3/2)*sqrt(3)*sqrt(73) + 73*sqrt(2)*sqrt(3))*(%e^(-x/2)*(sqrt(x))^3/sqrt(3!))*%e^(sqrt(- sqrt(73) - 10)*(3*%pi/8)*1))+sqrt(- sqrt(73) -
< 10)*((5*2^(3/2)*sqrt(3)*sqrt(73) - 73*sqrt(2)*sqrt(3))*(%e^(-x/2)*(sqrt(x))^3/sqrt(3!))*%e^(2*sqrt(- sqrt(73) - 10)*(3*%pi/8)*1)+ (73*sqrt(2)*sqrt(3)-
< 5*2^(3/2)*sqrt(3)*sqrt(73))*(%e^(-x/2)*(sqrt(x))^3/sqrt(3!)))*%e^(sqrt(sqrt(73) - 10)*(3*%pi/8)*1)))/1314)^2
<
< (%i2) plot2d(%o1,[x,0,10]);
<
< and maxima give me this error :?
<
< plot2d: expression evaluates to non-numeric value somewhere in plotting range.
< (%o2)?
< (%i3) Warning: empty y range [0:0], adjusting to [-1:1]
<
< can someone explain this to me?
The error message is somewhat cryptic and inaccurate.
The problem is that, when you plug-in a floating-point value
for x, Maxima computes a float value with a small imaginary
part.
Try:
plot2d(%o1,[x,0,10],[plot_realpart,true]);
Leo
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.