Plotting gives this error 'negative number cannot be raised to a fractional power', but other apps plot this function

asked 2014-10-06 22:25:01 -0600

nmz787 gravatar image

I am new to Sage, and have started by using the Cloud version... so I don't know if this error is present in the offline version. Here is what I'm doing:

plot(exp(x^(1/x)), (-5,5))

Which emits:

verbose 0 (2493: plot.py, generate_plot_points) WARNING: When plotting, failed to evaluate function at 100 points.
verbose 0 (2493: plot.py, generate_plot_points) Last error message: 'negative number cannot be raised to a fractional power'

and only plots to the right of 0 on the positive side.

My professor's TI Voyager 200 plots a similar graph to what wolframAlpha emits: http://www.wolframalpha.com/input/?i=...

edit retag flag offensive close merge delete

Comments

1

The question is similar to the post "How to plot correctly these two simple exponential functions?" on Sept 29 (http://ask.sagemath.org/question/24334/how-to-plot-correctly-these-two-simple-exponential-functions/). See what you think of that explanation.

dazedANDconfused gravatar imagedazedANDconfused ( 2014-10-06 23:37:03 -0600 )edit