jiggzson / nerdamer

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

integration result incorrect #680

Open junaun opened 2 years ago

junaun commented 2 years ago

when integrating 1/(cos(x)+1), the output from nerdamer is log(1+cos(x)), hasIntegral( ) return false. The correct result should be tan(x/2) (i check the result using other integral calculator and also test with upper lower bound) This error often occur when the expression involve trigo and fraction image

junaun commented 2 years ago

image gave different result when i put a space between cos and (x) ==>[cos (x)] and i have no idea why the Latex doesnt work for log( )