14.1. Elementary functions

The following elementary mathematical functions are implemented:and work on scalar expressions and numbers.

Table 14.1 Elementary mathematical functions

square_root(x,[d=2])

\(d\)-th root \(\sqrt[d]{x}\)

exp(x)

Exponential function \(\exp(x)\)

log(x)

Natural logarithm \(\log(x)\)

sin(x)

Sine \(\sin(x)\)

cos(x)

Cosine \(\cos(x)\)

tan(x)

Tangent \(\tan(x)\)

asin(x)

Inverse sine \(\operatorname{asin}(x)\)

acos(x)

Inverse cosine \(\operatorname{acos}(x)\)

atan(x)

Inverse tangent \(\operatorname{atan}(x)\)

atan2(y,x)

Inverse tangent with case distinguishment \(\operatorname{atan2}(y,x)\)

sinh(x)

Hyperbolic sine \(\sinh(x)\)

cosh(x)

Hyperbolic cosine \(\cosh(x)\)

tanh(x)

Hyperbolic tangent \(\tanh(x)\)

Further functions can be implemented using the CustomMathExpression class from the module pyoomph.expressions.cb, see Section 3.10.