Referencederivative

<derivative>

<derivative> is a Math component that renders the derivative of basic elementary functions (including polynomial, exponential, and trigonometric functions.)

Attributes and Properties

Attributes for <derivative>
AttributeTypeValues
applyStyleToLabel = "…"boolean"true" "false"
derivVariable = "…"
derivVariables = "…"[ _variableName ]
displayDecimals = "…"integer
displayDigits = "…"integer
displaySmallAsZero = "…"number
domain = "…"[ interval ]
expand = "…"text"true" "false"
extrema = "…"[ number ]
labelIsName = "…"boolean"true" "false"
labelPosition = "…"text"upperright" "upperleft" "lowerright" "lowerleft" "top" "bottom" "left" "right"
layer = "…"number
maxima = "…"[ number ]
minima = "…"[ number ]
nearestPointAsCurve = "…""true" "false"
numInputs = "…"integer
numOutputs = "…"integer
padZeros = "…"boolean"true" "false"
simplify = "…"text"none" "full" "numbers" "numberspreserveorder"
symbolic = "…"boolean"true" "false"
through = "…"
throughSlopes = "…"
variable = "…"_variableName
variables = "…"[ _variableName ]
xscale = "…"number
yscale = "…"number
Props for <derivative name="d">
PropertyType
$d.applyStyleToLabelboolean
$d.backgroundColortext
$d.derivVariables[ _variableName ]
$d.disabledboolean
$d.displayDecimalsinteger
$d.displayDigitsinteger
$d.displaySmallAsZeronumber
$d.domain[ interval ]
$d.expandtext
$d.expandSpecifiedboolean
$d.extrema[ number ]
$d.fixedboolean
$d.fixLocationboolean
$d.formulamath
$d.globalInfimum[ number ]
$d.globalMaximum[ number ]
$d.globalMinimum[ number ]
$d.globalSupremum[ number ]
$d.hiddenboolean
$d.labellabel
$d.labelIsNameboolean
$d.labelPositiontext
$d.latexlatex
$d.layernumber
$d.maxima[ number ]
$d.minima[ number ]
$d.numDerivativesinteger
$d.numExtremanumber
$d.numInputsinteger
$d.numMaximanumber
$d.numMinimanumber
$d.numOutputsinteger
$d.padZerosboolean
$d.simplifytext
$d.styleDescriptiontext
$d.styleDescriptionWithNountext
$d.symbolicboolean
$d.texttext
$d.textColortext
$d.textStyleDescriptiontext
$d.variable_variableName
$d.variables[ _variableName ]
$d.xscalenumber
$d.yscalenumber

Example: <derivative> of a nested function

A <derivative> renders the derivative of the enclosed math expression, if the expression can be interpreted as a function in xx.


Example: <derivative> of a named function

A <derivative> renders the derivative of the named <function>.


Example: <derivative> of a function of a different variable

A <derivative> renders the derivative of the named <function>. The <function> is defined in terms of yy with the variables attribute and this information is carried over when evaluating the derivative.


Example: Partial derivatives

A <derivative> renders the derivative of the named <function>. The <function> is defined in terms of xx and zz with the variables attribute. The variable for differentiation of the partial derivative is specified with the derivVariables attribute.


Example: Higher-order derivatives

Higher-order derivatives can be rendered by entering multiple values in the derivVariables attribute.


Attribute Example: derivVariables

The derivVariables attribute specifies the variable of differentiation (or a list of variables to differentiate with respect to) for multivariable functions.


Attribute Example: variables

The variables attribute can be used to specify the function variable if not specified by <function> definition.


Property Example: nInputs

The numInputs property returns the number of inputs associated with the enclosed function.


Property Example: numDerivatives

The numDerivatives property returns the number of differentiations performed on the enclosed function.


Example: attributes as properties

Both attributes of the <derivative> component are also accessible as properties.