[deutsch]

Parsing mathematical expressions

The examples below demonstrate how to dynamically parse and evaluate mathematical expressions using kontrast.parseExpression(). Please refer to the documentation on parsing mathematical expressions for details on all individual input and output properties.

Interactive examples

Trivial evaluation of a real function

The following example evaluates the function f(x) = x^2 for a given list of input values x.

Evaluating expressions with complex numbers

The following example shows the results when numberType: 'complex' is specified. Note that all results are given as complex values.