Do you mean this?
sage: f = x^2+1
sage: f(x=2)
5
sage: f(2)
/Users/wdj/sagefiles/sage-4.1.2.rc2/local/lib/python2.6/site-packages/IPython/iplib.py:2073:
DeprecationWarning: Substitution using function-call syntax and
unnamed arguments is deprecated and will be removed from a future
release of Sa
I did some experiments for you
f=3*x
assigns a symbolic expression in x to the variable f. In this case,
you should use named argument like
f(x=2)
On the other hand,
f(x)=3*x
assigns to f a symbolic function in x. Then you may just type
f(2)
Cheers
Kwankyu
--~--~-~--~~-
calcp...@aol.com wrote:
> I'm preparing a talk I'm giving at a local conference next week where
> I will be demonstrating Sage.
>
> I'm wondering about a deprecation warning I've been getting a
> lot lately. If I define function, say f(x), and I want to evaluate
> f(x) at x=2, if I enter f(
OK, I see, if I define f(x) then I can use f(2) to evaluate.
Otherwise, if I define only f, then f(x=2) or f.subs(2) is required.
Thanx,
A. Jorge Garcia
http://calcpage.tripod.com
Teacher & Professor
Applied Mathematics, Physics & Computer Science
Baldwin Senior High School & Nassau Community