I am trying to write a small program that will give me all the partial derivatives of a function. I use the fx-CP400.
function: fx(x) = 2*x; fy(y) = 1; fz(z) = -1
The problem is that I cannot define a function with a variable that stores an expression.
Define f(x) = x^2+3
If I typ this in main:
However, when I create a variable n that contains the expression, the function stores the variable and not the expression.
x^2+3 => n
Define f(x) = n
so if I change the expression that the variable contains, the data content of the function is overwritten. Also, the function does not work as it should.
Is there a way to create a function with an expression stored in a variable, storing the expression rather than the variable itself?
Please excuse my bad English. Hopefully you have understood my request.
Edited by Paedisc, 22 May 2022 - 12:32 PM.