jiggzson / nerdamer

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

Definite integral answer incorrect #593

Closed richardbullin closed 3 years ago

richardbullin commented 3 years ago

Hello,

Please refer to the below image using your demo page.

The integration of z with respect to x correctly returns "z*x" but if you take the definitive integral between 0 and 1 you incorrectly get "1/2", should be 'z'.

Works correctly if you put a constant in though (i.e. bottom example)

image

Kind Regards

jiggzson commented 3 years ago

@richbully, I see. It sees a variable and wrongly assumes it to be the variable of integration. Got it.