construct function
Apply a head that is itself computed to arguments, as in f'(0) or (x => body)(a).
How to write it
construct(head, x, ...)
Partial derivatives of an unknown function print as construct(construct(derivative(0, 1), f), a, b).
- head
- A function or a derivative operator. Takes an expression.
- x
- An argument. Takes an expression.
Examples
construct(derivative(1), sin)In the solver,
Open in the solverconstruct(derivative(1), sin)givesfunction(cos(slot(1))).construct(construct(derivative(1), sin), 0)In the solver,
Open in the solverconstruct(construct(derivative(1), sin), 0)gives1.
Functions its examples use
- derivative
The derivative operator: derivative(n) is of order n, derivative(0, 1) is the partial in the second argument.
Related functions
- decrement
Subtract 1 from a variable in place and return its old value.
- add_to
Add a value to a variable in place and return the new value.
- divide_by
Divide a variable by a value in place and return the new value.
- with_effort
Evaluate a body at quick, standard, deep or exhaustive effort.
- evaluate
Evaluate an expression even where it would be held.
- times_by
Multiply a variable by a value in place and return the new value.