ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 01 Sep 2013 07:31:16 -0500The plot of x=ln(y) looks just like y=ln(x)http://ask.sagemath.org/question/10480/the-plot-of-xlny-looks-just-like-ylnx/According to the author, x=ln(y) should go through y=1, not x=1, making the plot look similar to a half U on the positive side of the x-axis, instead of a half C, on the the positive side of the y-axis.
var('y')
f=ln(y)
plot(f, (x,-5,5), ymin=-5, ymax= 5, aspect_ratio=1)
Sun, 01 Sep 2013 04:16:45 -0500http://ask.sagemath.org/question/10480/the-plot-of-xlny-looks-just-like-ylnx/Answer by calc314 for <p>According to the author, x=ln(y) should go through y=1, not x=1, making the plot look similar to a half U on the positive side of the x-axis, instead of a half C, on the the positive side of the y-axis.</p>
<pre><code>var('y')
f=ln(y)
plot(f, (x,-5,5), ymin=-5, ymax= 5, aspect_ratio=1)
</code></pre>
http://ask.sagemath.org/question/10480/the-plot-of-xlny-looks-just-like-ylnx/?answer=15381#post-id-15381With plot, Sage assumes that the input defines the horizontal axis. So, to plot what you want, you'll need to use the implicit_plot command.
var('y')
implicit_plot(x==ln(y),(x,-3,3),(y,0,3))
Sun, 01 Sep 2013 07:31:16 -0500http://ask.sagemath.org/question/10480/the-plot-of-xlny-looks-just-like-ylnx/?answer=15381#post-id-15381