FLUTTER ECOSYSTEM

math_expressions

A library for parsing and evaluating mathematical expressions, supporting real numbers, vectors, and basic interval arithmetic.

Latest version
3.2.0
30-day downloads
88.7K
Likes
381
Pub points
160

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

A Flutter/Dart package for parsing and evaluating mathematical expressions, supporting real numbers, vectors, and basic interval arithmetic. It enables dynamic computation of math formulas from strings, making it ideal for calculators, scientific apps, and data analysis tools. The library is lightweight, cross-platform, and integrates seamlessly into Flutter projects. It supports standard operators, functions, and custom variables, with clear error handling for invalid inputs. Ideal for developers needing flexible math expression evaluation without building a parser from scratch.

Use cases
  • Scientific calculators
  • Dynamic formula evaluation
  • Data analysis in apps
  • Educational math tools
  • Physics simulations
Key features
  • Supports real numbers and vectors
  • Basic interval arithmetic
  • Custom variable and function definitions
  • Cross-platform compatibility
  • Robust error handling
  • String-based expression parsing
Suitable for
  • Math-heavy applications
  • Educational software
  • Engineering and physics apps
  • Calculator apps
  • Data-driven UIs
Considerations
  • Not optimized for high-performance numerical computing
  • Limited to basic interval arithmetic
  • Requires careful input validation to prevent injection-like issues
  • No built-in support for complex numbers
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add math_expressions

Categories

Dependencies

Dependency list 2 items

Source repository

Related projects

Rankings