Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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=x%5E%281%2Fx%29