Skip to content

Commit 4aa67d4

Browse files
committed
Add support for negative numbers
1 parent 10a747c commit 4aa67d4

File tree

6 files changed

+6140
-30
lines changed

6 files changed

+6140
-30
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ A JavaScript library which parses an equation in string format to a number.
66

77
Current abilities:
88
* Evaluate mathematical expressions with the following operators: `^`, `*`, `/`, `+`, `-`
9-
* Evaluate mathematical expressions with the following operators containing a number inside the brackets: `sqrt()`
9+
* Evaluate mathematical expressions with the following operators containing a number inside the brackets, with **trigonometric values represented in radians**: `sqrt()`, `sin()`, `cos()`, `tan()`
1010
* Evaluate mathematical expressions with brackets
11-
* Evaluate mathematical expressions containing multi-digit integers and floats
11+
* Evaluate mathematical expressions containing multi-digit positive and negative integers and floats
1212

1313
Again, this library has not been fully tested so may not work as expected with these abilities.

0 commit comments

Comments
 (0)