14.1. Elementary functions
The following elementary mathematical functions are implemented:and work on scalar expressions and numbers.
|
\(d\)-th root \(\sqrt[d]{x}\) |
|
Exponential function \(\exp(x)\) |
|
Natural logarithm \(\log(x)\) |
|
Sine \(\sin(x)\) |
|
Cosine \(\cos(x)\) |
|
Tangent \(\tan(x)\) |
|
Inverse sine \(\operatorname{asin}(x)\) |
|
Inverse cosine \(\operatorname{acos}(x)\) |
|
Inverse tangent \(\operatorname{atan}(x)\) |
|
Inverse tangent with case distinguishment \(\operatorname{atan2}(y,x)\) |
|
Hyperbolic sine \(\sinh(x)\) |
|
Hyperbolic cosine \(\cosh(x)\) |
|
Hyperbolic tangent \(\tanh(x)\) |
Further functions can be implemented using the CustomMathExpression class from the module pyoomph.expressions.cb, see Section 3.10.