ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 07 Oct 2014 06:37:03 +0200Plotting gives this error 'negative number cannot be raised to a fractional power', but other apps plot this functionhttps://ask.sagemath.org/question/24414/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
Tue, 07 Oct 2014 05:25:01 +0200https://ask.sagemath.org/question/24414/plotting-gives-this-error-negative-number-cannot-be-raised-to-a-fractional-power-but-other-apps-plot-this-function/Comment by dazedANDconfused for <p>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:</p>
<pre><code>plot(exp(x^(1/x)), (-5,5))
</code></pre>
<p>Which emits:</p>
<pre><code>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'
</code></pre>
<p>and only plots to the right of 0 on the positive side.</p>
<p>My professor's TI Voyager 200 plots a similar graph to what wolframAlpha emits:
<a href="http://www.wolframalpha.com/input/?i=x%5E(1/x)">http://www.wolframalpha.com/input/?i=...</a></p>
https://ask.sagemath.org/question/24414/plotting-gives-this-error-negative-number-cannot-be-raised-to-a-fractional-power-but-other-apps-plot-this-function/?comment=24415#post-id-24415The 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.Tue, 07 Oct 2014 06:37:03 +0200https://ask.sagemath.org/question/24414/plotting-gives-this-error-negative-number-cannot-be-raised-to-a-fractional-power-but-other-apps-plot-this-function/?comment=24415#post-id-24415