Thanks, that worked.

--
Munthe

On Sep 9, 1:27 pm, "John Cremona" <[EMAIL PROTECTED]> wrote:
> You need to set the range in the plot command, not in the show
> command.  This works for me:
>
> sage: f = sin(x)
> sage: plot(f, (-5,+5))
>
> or even
>
> sage: p = plot(f,(-5,5))
> sage: q = plot(f.diff(),(-5,5))
> sage: show(p+q)
>
> etc.
>
> John Cremona
>
> 2008/9/9 Munthe <[EMAIL PROTECTED]>:
>
>
>
> > Hey,
>
> > I'm relative new to sage, but intend to use it for math and physics
> > classes instead of mathcad.
>
> > After upgrading from sage 3.0.6 to 3.1.1, I can't get any functions to
> > plot outside of [-1..1].
>
> > For example:
> > sage: f = sin(x)
> > sage: f(0.5)
> > 0.479425538604203
> > sage: f(5.0)
> > -0.958924274663138
> > sage: p = plot(f)
> > sage: show(p,xmax=2*pi)
>
> > Only gives me the graph until x==1, and leaves the rest of the figure
> > blank with only hte axes on.
>
> > Anybody knows what I'm doing wrong?
> > Is there a way to define which interval a functions get evaluated at?
>
> > Thanks in advance.
> > Munthe
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to