base library

Support for evaluating

Classes

ComputeContext
A compute context defines some rules the lexer/parser/evaluator must follow
DefaultComputeContext
A default, complete implementation of ComputeContext.
Rational
A number that can be expressed as a fraction of two integers, a numerator and a non-zero denominator.
Result
Represents a real number and its imaginary parts.

Enums

ComputationStep
A list computation steps used to evaluate an expression.

Extensions

BigIntExt on BigInt
Extensions on BigInt.
IntExt on int
Extensions on int.
RationalExt on Rational
A small snippet of code made to know if a rational has a finite precision.

Functions

compute(String input, {ComputeContext context = const DefaultComputeContext()}) Result
Takes an input expression and returns its result.

Exceptions / Errors

ComputationError
An error caused by the input expression (coming from the user)