Am 2014-09-09 um 05:03 schrieb Miguel Yorro:
> Hi! I'm using Craig Finch Sage Beginner's Guide to learn to use Sage.
> However, when I ran the following code (both in the notebook and
> terminal mode)
> 
> |
> sage:var('x')
> x
> sage:sinc(x)=sin(x)/x
> sage:plot(sinc,(x,-10,10))

Try one of the following:

sage: var('x')
x
sage: sinc(x) = sin(x)/x

sage: sinc
x |--> sin(x)/x
sage: sinc(x)
sin(x)/x

sage: plot(sinc, (-10, 10))

sage: plot(sinc(x), (x, -10, 10))

Both work for me. "sinc" is a function, so if you use it directly as you
did, you don't have to specify a variable in plot. If you want to do
this, use "sinc(x)", which is a symbolic expression.

Daniel

-- 
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 http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to