First time here? Check out the FAQ!

Ask Your Question
0

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

asked 11 years ago

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)
Preview: (hide)

1 Answer

Sort by » oldest newest most voted
4

answered 11 years ago

calc314 gravatar image

updated 11 years ago

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))
Preview: (hide)
link

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: 11 years ago

Seen: 578 times

Last updated: Sep 01 '13