I’ve got the following problem. I have the function
f[a_,b_,c_]=a+b/c
Now I’d like to set a new function
g[a_,b_,c_]=D[f[a_,b_,c_],a_]
So the plan would be to have a new function which I can use to compute g for different a,b,c. For example I’d say a=1 b=2 c=3 and Mathematica would tell me g. Obviously it does not work because i have the same variables on the right and on the left side. I’ve already googled my brain away but I found no solution. Do you have some advice for me?
I am sorry if I formatted something wrong, this is my first activity in the Wolfram community.
We don’t know what you want to do, so you might either need = or := depending on what you want to do. If a, b and, c are numbers, the derivative does not make any sense, you can’t do the derivate with respect to a number…
I noticed you used a_, with the _ on the right hand side of a definition. This is wrong. a_ is a pattern and a is the name of that pattern. The pattern should appear only on the left hand side. Please read:
It works pretty well for El… El[1,2,3] gives me 0.282942.
However, Eld[1, 2, 3, 4, 5, 6] doesn’t work, which makes sense because Eld can’t give k,l and d to El. However, I do not know how to solve this problem. Can you help me again?