Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

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

  • sin⁡′=cos⁡(#1) &\displaystyle \sin' = \cos(\#1) \, \&
    construct(derivative(1), sin)

    In the solver, construct(derivative(1), sin) gives function(cos(slot(1))).

    Open in the solver
  • sin⁡′(0)=1\displaystyle \sin'(0) = 1
    construct(construct(derivative(1), sin), 0)

    In the solver, construct(construct(derivative(1), sin), 0) gives 1.

    Open in the solver

Functions its examples use

  • derivative

    The derivative operator: derivative(n) is of order n, derivative(0, 1) is the partial in the second argument.

  • 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.