Ask Your Question
0

The plot of x=ln(y) looks just like y=ln(x)

asked 2013-09-01 11:16:45 +0200

bxdin gravatar image

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)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2013-09-01 14:31:16 +0200

calc314 gravatar image

updated 2013-09-01 14:33:56 +0200

With 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))
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-09-01 11:16:45 +0200

Seen: 470 times

Last updated: Sep 01 '13