tiny_expr library

Classes

TinyExpr
The TinyExpr class provides a lightweight expression parser and evaluator.
Token
A class representing a token in the expression parser. A token can be a number, variable, operator, function, constant, separator, end of expression, or an error.

Enums

TokenType
Enums to represent different types of tokens used in the expression parser.

Extensions

TinyExprStringExtension on String
A set of extensions on String to evaluate mathematical expressions.

Functions

combinations(double n, double r) double
Calculates the number of combinations (n choose r).
cosh(double x) double
Calculates the hyperbolic cosine of a number.
factorial(double x) double
Calculates the factorial of a number.
permutations(double n, double r) double
Calculates the number of permutations.
sinh(double x) double
Calculates the hyperbolic sine of a number.
tanh(double x) double
Calculates the hyperbolic tangent of a number.