"Constant" version of var()?

0 views
Skip to first unread message

rpmu...@gmail.com

unread,
Feb 5, 2008, 12:55:01 PM2/5/08
to sage-newbie
Is there a constant version of the var() command where I can define
values in a symbolic expression to be constant? Right now I define
them to be variables, and then take partial derivatives:

sage: var("a")
a
sage: diff(a*x,x)
a

which obviously gives the right results, but I'm bothered by using the
term "variable" for something that does not vary.

Thanks in advance...

William Stein

unread,
Feb 5, 2008, 1:49:59 PM2/5/08
to sage-...@googlegroups.com

There isn't anything like that. It never occurred to us to write
something like that. Is there anything like that in Maple, Mathematica,
Maxima, Mupad, etc.?

William

rpmu...@gmail.com

unread,
Feb 5, 2008, 2:47:44 PM2/5/08
to sage-newbie
I don't know that there is. I think the fact that it hasn't occurred
to anyone means that this isn't anything I should worry about. Thanks
for your quick response.

On Feb 5, 11:49 am, "William Stein" <wst...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages