jiggzson / nerdamer

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

diff(sin^2 x,x) #564

Closed rajinderpalsingh2001 closed 4 years ago

rajinderpalsingh2001 commented 4 years ago

It gives output sin^2 only but it should be (2 sin x cos x)

Similar Problem facing for other functions i.e. cos,tan..etc

Happypig375 commented 4 years ago

Try sin(x)^2 instead of sin^2 x.