You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>Note: This repository has been transfered from [henryhale](https://github.com/henryhale)/mathflow
12
-
>to [mathflowjs](https://github.com/mathflowjs). Check out the [TODO.md](https://github.com/mathflowjs/mathflow/blob/master/TODO.md) file to view the roadmap of this project.
13
-
14
11
## Overview
15
12
16
-
MathFlow is a lightweight and expressive scripting language designed for mathematical expressions and calculations. It provides a simple and intuitive syntax for performing mathematical operations, including support for standard arithmetic, functions like sin, cos, tan, and other functions.
13
+
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.
17
14
18
15
## Features
19
16
20
-
-**Mathematical Expressions:** Perform standard arithmetic operations with ease.
21
-
-**Functions:** Built-in support for mathematical functions such as sin, cos, tan, abs and more.
22
-
-**Clean and Modern Syntax:** Readable and easy-to-write syntax for mathematical expressions.
23
-
-**Abstract Syntax Tree (AST):** Utilizes an AST for parsing and interpreting expressions.
17
+
-**Natural syntax:** Write `2x + 3(y - 1)` instead of `2*x + 3*(y - 1)`. Both are supported anyway.
18
+
-**Mathematical functions:** Built-in support for `sin`, `cos`, `tan`, `log`, `sqrt`, `abs`, and more.
19
+
-**Variables:** Assign and use variables like `x = 5`, `y = 5x - 1`
20
+
-**Clean & modern syntax:** Readable and easy-to-write syntax for mathematical expressions.
21
+
-**AST-based parsing:** Proper order of operations and expression evaluation.
22
+
-**Lightweight:** Focused purely on mathematical computation without bloat.
23
+
24
+
## Use Cases
25
+
26
+
- Formula calculators and mathematical tools.
27
+
- Educational applications for learning mathematics.
28
+
- Basic scientific computing interfaces.
29
+
- Anywhere you need to evaluate user-input mathematical expressions safely.
0 commit comments