math_parser 1.0.0 copy "math_parser: ^1.0.0" to clipboard
math_parser: ^1.0.0 copied to clipboard

outdated

Process math expressions, convert them to machine-readable form, and calculate them.

example/math_parser_example.dart

import 'package:math_parser/math_parser.dart';

void main() {
  // Parsing string to a MathNode
  final expression = MathNodeExpression.fromString(
    '((2x)^(e^3 + 4) + cos(3)x) / log[x + 3^2e](2 + (3x)^2)^5 * (2 + x)(x^2 + 3) + arcctg(x)',
  );
  // Display the parsed expression in human-readable form
  print(expression);

  // Evaluate the expression with `x = 20` and display result
  print(expression.calc(20));
}
11
likes
0
pub points
82%
popularity

Publisher

verified publishersominemo.com

Process math expressions, convert them to machine-readable form, and calculate them.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on math_parser