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

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

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
0
points
45
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.15 - 2025.03.30

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

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on tiny_expr