Ask Your Question

Revision history [back]

Plotting multiple functions with different growth rates

Hi, I'm new to sagemath. I wanted to plot two different functions with different growth rates. For example, 1/x and x. I used the following code snippet. Because 1/x goes to infinity at 0, the other function can not be distinguished from the 1/x function in the plot. How can I limit plotting to specific range for example, plot only y from 0 to 10 and from 0 to 10 ?

f1 = plot((x), (x,0,2))
f2 = plot((1/x), (x,0,2))