Defining the derivative of a function in MAIN-App.
Posted 29 January 2004 - 05:05 PM
When you type the following:
What do you think is the output of f1(x)?
Yes, you're right, it is
But what do you think is the output of
I finally understand, why this is like it is,
but how can I get the derivative defined
by a sinlge line?
Posted 03 February 2004 - 06:17 PM
Now there is the projected answer for
I want them to have this changed, I hope they'll do it in a future version...
Posted 03 February 2004 - 06:43 PM
All instances of the variable 'x' will be substituted with your parameter to the function.
If you want to work around this, you can do something like the following (taking your example):
define f1(a)=diff(f(x),x) | x=a
now, this should produce your decired result
x will not be replaced in the function, and the differentiation will be evaluated with respect to 'x' as normal,
then the result of the differentiation will have its 'x' component replaced with your input 'a', producing your final answer.
To avoid performing the same differentiation every time you call the function, you should do it the way suggested by casio
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users