| Author |
Comment/Response |
Conor Lawless
|
10/18/99 06:52am
Given the function: f[x_, y_] := x^4 - 2y*x^2 + x^2 + y^2 - 2*x + 5, you can ask Mathematica to differentiate with respect to y (keeping x constant) ie df(x,y)/dy = -2x^2 + 2y
How can you then use this function by substituting numbers directly? For instance, if you type f[1,2], you get 5, but if you do g[x_,y_]:= df(x,y)/dy , and then type g[1,2], it says 1 is not a variable. How can you get around this?
CONOR.
URL: , |
|