Assigning a function ?
- Subject: Assigning a function ?
- From: Jaime Villate
- Date: Thu, 22 Apr 2010 11:52:50 +0100
On Thu, 2010-04-22 at 11:27 +0100, Laurent Bernard wrote:
> I'm fairly new to maxima, but could not really find a solution to my
> problem in the archives or in the friendly manual...
Hi; welcome to this list.
> I'm trying the following:
>
> g(x):=x^3;
> dg(x):=diff(g(x),x,1);
> dg(0);
Try rather:
define(g(x), x^3);
define(dg(x), diff(g(x),x,1));
dg(0);
Also, related to define vs. :=, read:
http://www.math.utexas.edu/pipermail/maxima/2010/020599.html
http://www.math.utexas.edu/pipermail/maxima/attachments/20100304/5be94304/attachment.mht
Regards,
Jaime