quds_formula_parser 0.0.4 copy "quds_formula_parser: ^0.0.4" to clipboard
quds_formula_parser: ^0.0.4 copied to clipboard

Dart package designed for parsing and evaluating mathematical, logical, and textual formulas. It enables developers to input complex expressions.

0.0.1 #

  • Initial version.

0.0.2 #

  • Updated the packege to fit the pub scores creteria.

0.0.3 #

  • Updated the packege to fit the pub scores creteria.

0.0.4 #

  • Added support of fraction type.
  • Simplified the usage of the provider
  • Simplified the registration of new function
  provider.registerFunction(
      notations: ['Randomize', 'Custom.Rnd'],
      evaluator: (params) {
        return params.first * Random().nextInt(100);
      },
      checkParameters: (params) => params.length == 1 && params.first is num);
  • Added manipulating method
  provider.registerFunction(
      notations: ['SinX'],
      checkParameters: (params) => params.length == 1 && params.first is num,
      evaluator: (params) {
        return params.first * Random().nextInt(100);
      },
      manipulateResult: (r) =>
          r.abs() < 1e-6 ? 0.0 : r);
```,
7
likes
0
points
117
downloads

Publisher

verified publisherquds.cc

Weekly Downloads

Dart package designed for parsing and evaluating mathematical, logical, and textual formulas. It enables developers to input complex expressions.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on quds_formula_parser