jiggzson / nerdamer

a symbolic math expression evaluator for javascript
http://www.nerdamer.com
MIT License
517 stars 82 forks source link

numer doesn't work #533

Closed Happypig375 closed 4 years ago

Happypig375 commented 4 years ago

nerdamer('sqrt 2', ['numer']) -> sqrt(2)

jiggzson commented 4 years ago

The second parameter is the knowns/substitutions object. You have to pass it an empty object as the second parameter. nerdamer('sqrt 2', {}, ['numer']).

Happypig375 commented 4 years ago

Oops lol ok