function_tree 0.8.1
function_tree: ^0.8.1 copied to clipboard
A simple library for parsing strings into callable function-trees.
Change log #
0.8.1 #
- Fixed unary sign bug that treated expressions like -a+b as -(a+b). Wow!
0.8.0-dev.1 #
- Added null safety!
- String interpolation appears even slower than before, but the generated function trees are still pretty efficient (once generated, within an order of magnitude of native Dart math library functions).
0.7.0 #
- Added functionality for two-parameter functions,
log
,nrt
andpow
in response to a feature request.
0.6.0 #
- Important bug fix: differences
0.5.0 #
- Dusted out some cobwebs.
- Renamed
FunctionTree
MultiVariableFunction
andFunctionOfX
SingleVariableFunction
, which is more expressive. - Removed zero, derivative and integral estimates, which I feel were tangential.
0.2.6 #
Fixed ambiguity issue: if the user chooses a variable name in an expression that happens to be a special constant name (such as 'e'), the parser will take occurrences in the expression to mean that the variable.
0.2.5 #
- Marked as ready for Dart 2.
- dartfmt-ed some of the files.
- Added support for the
%
operator. - Added support for
floor
,ceil
andround
. - Added come timing comparisons between evaluating native Dart functions, function tree instances and repeated string parsing in
test/
.
0.2.0 #
- Re-wrote the parsing engine: code much cleaner and easier to read.
- Cleared out deprecated dart:math constants.
- Updated code for Dart 2.
- Added support for
abs
.
0.1.1 #
- Basic numerical differentiation.
- Basic numerical integration (Simpson).
- Basic zero-finding (Newton).
- Very much proof of concept.
0.1.0 #
- Initial version, proof of concept.
- Very little checking of input at this stage.