NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev
pub.dev, #3228 most downloaded on pub.dev
Process math expressions, like formulas or parts of equations, convert them to machine-readable form, and calculate them.
Latest stable
1.5.2
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 8 days to 2.0 years
Nearly every release is documented
notes for 8 of 8 stable releases
1 version withdrawn
withdrawn after publishing
5 years old
9 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
Added MathComparison.evaluate() - by jersonal-com
MathComparison.evaluate() - by jersonal-comIncreased upper SDK constraint to declare support for Dart 3
Now the ' symbol is allowed for variable and function names so you can have variables like y'.
' symbol is allowed for variable and function names so you can have variables like y'.>= and <=.Your coding agent can read these notes before it upgrades. Set up the MCP server →
Define custom functions and redefine built-in functions when parsing an expression. See docs and example.
MathNodeExpression.getPotentialFunctionNames() to detect potentially
used functions in a string.MathExpression.getUsedFreeformFunctions().MissingFunctionArgumentListException renamed to
OutOfRangeFunctionArgumentListExceptionMathNodeExpression.fromString() may throw other errors besides
MathExceptionMathNodeExpression.getPotentialVariableNames() is replaced by
MathNodeExpression.getPotentialDefinable()log[base](arg), you should pass log(base, arg) syntax nowUnexpectedClosingBracketException and BracketsNotClosedException can
now tell where the problem probably happened.InvalidFunctionNameException,
DuplicateDeclarationException, InvalidFunctionArgumentsDeclaration.# 1.3.1 - Variable validation fix
Important change: MathNode is now a class of MathExpression interface. Compared to MathNode, MathExpression may return null in calc() method.
MathNode is now a class of MathExpression interface.
Compared to MathNode, MathExpression may return null in calc() method.getUsedVariables() method for MathExpression and MathNode.
This method goes down the math tree to find any uses of MathVariable
and returns names of all variables.MathExpression object family - MathComparison:
MathComparisonEquation (=)MathComparisonGreater (>)MathComparisonLess (<)MathNodeExpression.fromStringExtended() method allows you to
interpret equations and comparisons. Compared to fromString,
it returns MathExpression instead of MathNode, since comparisons
can't guarantee result.MathNodeExpression.getPotentialVariableNames() analyzes given
math expression string for possible use of variables. Refer to
documentation for rough edges before using it.MathNodeExpression.builtInVariables gives a list of built-in
predefined variable names.MathNodeExpression.isVariableNameValid() lets you check if
the parser can work with a given name.CantProcessExpressionException.You need to pass an instance of MathVariableValues instead of a num to the calc() function now
MathFunctionXdeprecated.MathVariable introduced.MathVariableValues instead of a num to the calc() function nowmath_parser_integrateYou need to pass an instance of MathVariableValues instead of a num to the calc() function now.
MathFunctionXdeprecated.MathVariable introduced.MathVariableValues instead of a num
to the calc() function now.Initial release.
One column per quarter.