On Monday, November 7, 2016 at 6:51:34 AM UTC-8, Math Student wrote:
>
> I attempted to graph two functions by typing the following:
>
> plot(e^x,(x,-2,5))
> plot(1/(x*(x-1)*(x-2)),(x,-2,5))
>
> I seem to be running into three big problems.
> 1. The graph is so far zoomed out on the y axis as to be unusable
> 2. Only the second function will be displayed (as far as I can tell anyway)
> 3. There are no grid lines (to help identify specific points on the lines, 
> etc.)
>
> Maybe Sage isn't intended to be used this way, but if there is a 
> workaround, it would be appreciated. 
>
> Thanks!
>
> P.S. I attached a screen capture of what I did in sage next to what I am 
> trying to replicate.
>

1. Sage can't guess the appropriate range for the y-axis. You have to 
specify it. Otherwise it will just take a box that contains all/most 
values, which is way too large if there are poles.
2. you have to "add" plots together to have them display in the same figure
3. there is probably an option for it. Try "plot?" and take it from there.

for 1+2, you can use:

(plot(e^x,(x,-2,5))+plot(1/(x*(x-1)*(x-2)),(x,-2,5),color="red",detect_poles=True)).show(ymin=-7,ymax=10)

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to