Wilang Documentation1.0.0+4

diff#

Differentiate an expression symbolically.

Available in: math cells, REPL.

Syntax#

diff(expression, variable)

Arguments and behavior#

Differentiates an expression symbolically. derivative is an alias for diff. Higher derivatives can use the optional order argument supported by diff. An array argument takes the differences between its elements. The example returns text.

Example#

Edit the inputs, then use Run or Reset. Changes stay in this example.

Example
diff("sin(x)","x")

Expected result: cos(x).

See also#

subtract · partitionSelect

All functions · Math guides