<< Diag SYMSCI Toolbox Div >>

SYMSCI Toolbox >> SYMSCI Toolbox > Diff

Diff

differentiate symbolic expressions

Calling Sequence

d: Diff( f, x, n = 0 )

Arguments

f

symbolic scalar expression, matrix of symbolic scalar expressions

x

symbolic scalar symbol

n

non-negative integer

Description

Returns the n-th derivative d of expressions f with respect to a symbol x.

Examples

// symbol x
x = %(Sym("x"))

// some expressions
a = %(Sym("f(x)"))
b = %(Sym("x^x"))
c = %(Sym("x*log(x)"))
d = %(Sym("y*x + z"))

// matrix of expressions
A = %([ a, b; c, d ])

// some derivatives
Diff(a,x)
Diff(b,x)
Diff(A,x)
Diff(A,x,2)

// clean up
reset();
clear x a b c d A;

See Also

Authors

Bibliography

SymEngine: C++ library for fast symbolic manipulation.


Report an issue
<< Diag SYMSCI Toolbox Div >>