New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

mathflow

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

mathflow

A lightweight library for evaluating mathematical expressions written in natural mathematical notation.

latest
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

MathFlow

Simplifying Math, Empowering Code.

Overview

MathFlow is a lightweight JavaScript library for evaluating mathematical expressions written in natural mathematical notation. It parses and computes standard arithmetic, trignometric functions, logarithms, and algebraic expressions exactly as you would write them on paper.

Features

  • Natural syntax: Write 2x + 3(y - 1) instead of 2*x + 3*(y - 1). Both are supported anyway.
  • Mathematical functions: Built-in support for sin, cos, tan, log, sqrt, abs, and more.
  • Variables: Assign and use variables like x = 5, y = 5x - 1
  • Clean & modern syntax: Readable and easy-to-write syntax for mathematical expressions.
  • AST-based parsing: Proper order of operations and expression evaluation.
  • Lightweight: Focused purely on mathematical computation without bloat.

Use Cases

  • Formula calculators and mathematical tools.
  • Educational applications for learning mathematics.
  • Basic scientific computing interfaces.
  • Anywhere you need to evaluate user-input mathematical expressions safely.

Documentation

To get started with MathFlow, read the documentation here.

Contributing

Contributions are welcome to make MathFlow even better! Feel free to open issues or submit pull requests.

License

This project is licensed under the MIT License

Copyright © 2024-present, Henry Hale

Keywords

math

FAQs

Package last updated on 14 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts