tiny_expr 0.3.1 copy "tiny_expr: ^0.3.1" to clipboard
tiny_expr: ^0.3.1 copied to clipboard

A Dart library for evaluating mathematical expressions with support for variables and functions.

0.3.1 #

Updated #

  • Removed unused _optimize()

0.3.0 #

Added #

  • Support for extension method on String to directly use .evaluate() method

0.2.0 #

Added #

  • Support for factorial via !.

Updated #

  • Documentation for exponentiation.
  • Documentation for unary negation.
  • Documentation for constants (e.g., pi, e).
  • Documentation for trigonometric functions (e.g., sin, cos, tan, cosec, sec, cot).
  • Documentation for hyperbolic functions (e.g., sinh, cosh, tanh).
  • Documentation for logarithmic functions (e.g., log, ln).
  • Documentation for square root and absolute value.
  • Documentation for exponential function.
  • Documentation for rounding functions (e.g., ceil, floor).
  • Documentation for factorial, combinations (nCr), and permutations (nPr).
  • Documentation for variables in expressions.
  • Documentation for complex expressions with multiple types of operators.
  • Added tests for all the above operations.
  • Implemented toString() method for TinyExpr and Token class.

0.1.0 #

Added #

  • Initial release with basic functionality for expression evaluation.
  • Supports basic arithmetic operations: addition, subtraction, multiplication, and division.
  • Includes support for parentheses to define operation precedence.
  • Provides a simple API for evaluating expressions from strings.
12
likes
160
points
35
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.08 - 2025.03.23

A Dart library for evaluating mathematical expressions with support for variables and functions.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on tiny_expr