<derivative>
<derivative>
is a Math
component that renders the derivative of basic elementary functions
(including polynomial, exponential, and trigonometric functions.)
Attributes and Properties
Attribute | Type | Values |
---|---|---|
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 |
Property | Type |
---|---|
$d.applyStyleToLabel | boolean |
$d.backgroundColor | text |
$d.derivVariables | [ _variableName ] |
$d.disabled | boolean |
$d.displayDecimals | integer |
$d.displayDigits | integer |
$d.displaySmallAsZero | number |
$d.domain | [ interval ] |
$d.expand | text |
$d.expandSpecified | boolean |
$d.extrema | [ number ] |
$d.fixed | boolean |
$d.fixLocation | boolean |
$d.formula | math |
$d.globalInfimum | [ number ] |
$d.globalMaximum | [ number ] |
$d.globalMinimum | [ number ] |
$d.globalSupremum | [ number ] |
$d.hidden | boolean |
$d.label | label |
$d.labelIsName | boolean |
$d.labelPosition | text |
$d.latex | latex |
$d.layer | number |
$d.maxima | [ number ] |
$d.minima | [ number ] |
$d.numDerivatives | integer |
$d.numExtrema | number |
$d.numInputs | integer |
$d.numMaxima | number |
$d.numMinima | number |
$d.numOutputs | integer |
$d.padZeros | boolean |
$d.simplify | text |
$d.styleDescription | text |
$d.styleDescriptionWithNoun | text |
$d.symbolic | boolean |
$d.text | text |
$d.textColor | text |
$d.textStyleDescription | text |
$d.variable | _variableName |
$d.variables | [ _variableName ] |
$d.xscale | number |
$d.yscale | number |
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 .
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 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 and 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.