- Add FormulaEvaluator class with d4rt integration - Support single output variable formulas with variable injection - Include comprehensive error handling and validation - Add 15 test cases covering evaluation scenarios - Create working example with Newton's law, quadratic discriminant, etc. - Export evaluator in main library file Implements formula evaluation by injecting variable declarations into d4rt source code, enabling execution of mathematical formulas with input parameters.
8 lines
310 B
Dart
8 lines
310 B
Dart
/// A library for working with mathematical formulas using the d4rt interpreter.
|
|
///
|
|
/// This library provides data models for representing formulas and an evaluator
|
|
/// for executing them using the d4rt Dart interpreter.
|
|
library d4rt_formulas;
|
|
|
|
export 'formula_models.dart';
|
|
export 'formula_evaluator.dart';
|