|
Differentiate
|
Batch language command
|
|
Find analytical derivative of an expression. Supports scalar expressions with +,-,*,/,^, Sin, Cos, Arctan, Log, Exp, Erf, Tan in them; correctly treats variable dependancies. Upon execution 'receptacle' will become a dependent variable, set equal to the derivative expression.
|
Syntax
|
Differentiate (receptacle, expression, variable, );
|
Notes
|
'receptacle' is the name of the variable to receive the derivative.
'expression' is the expression to differentiate
'variable' is the identifier of the variable with respect to which the derivative should be taken
'times' is an optional parameter of what order derivative should be taken. Default = 1
HyPhy performs only trivial simplifications,
so the results of Differentiate may be grossly undersimplified.
|
Examples
|
Differentiate (dfx, Exp(x^2),x);
GetString (derivativeStr, dfx, 0); // extract the string of the derivative from dfx
fprintf (stdout, "\n", derivativeStr, "\n");
/* The result is Exp(x^2)*x^2*(2/x) */
|
|
Last modified: 8/20/2002 |
|
|