jiggzson / nerdamer

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

csc returns a wrong sign for negative numbers #477

Closed Saikedo closed 5 years ago

Saikedo commented 5 years ago

It seems like a negative vale of the csc is ignored and we have a bug where csc(x) = csc(-x) for all x.

By looking at the code I noticed that we apply absolute value on the symbol but I am not sure why. Any idea why?

Saikedo commented 5 years ago

@jiggzson Nevermind. Already fixed the issue and will push soon.

jiggzson commented 5 years ago

Fixed with #499