This is the documentation for the Evaluator project (see GitHub).
This package is centered around the Complex class, with a focus on complex arithmetic.
This package is centered around the Complex class, with a focus on complex arithmetic.
The ComplexEvaluator object contains the evaluate(String)
method
for parsing a mathematical expression as a function of complex numbers.
val function = ComplexEvaluator.parse("log(i * x) - i * log(y)")
val sine = Complex(3, 4).sin
The evaluator
package is designed to simplify the process of parsing a string.
The evaluator
package is designed to simplify the process of parsing a string.
The work of parsing a string is reduced to just tokenizing an expression, that is, breaking it down into its
principal parts. The AbstractEvaluator
class will handle the rest.
The AbstractTokenizer
makes this even easier, though it is only applicable in some situations.
This is the documentation for the Evaluator project (see GitHub).
The main package net.totietje.evaluator. The net.totietje.complex package contains an example usage of this package, which may also be useful.