3 ms·
I had a look at your jsfiddle, and it looks to me that it's a bug in mathjs. I have the impression that mathjs doesn't parse well complex numbers (I can be wron
by S4M 10y ago
I had a look at your jsfiddle, and it looks to me that it's a bug in mathjs. I have the impression that mathjs doesn't parse well complex numbers (I can be wrong there), so why not spend 1 hour to try to fix that bug before considering alternatives?
- valera_rozuvan 10y agoAs it turns out, Math.js doesn't support arbitrary precision calculations with complex numbers. This is because it is using libraries complex-js [1] and bignumber.js [2], which in turn also don't support arbitrary precision calculations with complex numbers. This situation will improve in the future. See the Math.js issue [3]. [1] https://github.com/patrickroberts/complex-js https://github.com/patrickroberts/complex-js [2] https://github.com/MikeMcl/bignumber.js/ https://github.com/MikeMcl/bignumber.js/ [3] https://github.com/josdejong/mathjs/issues/694 https://github.com/josdejong/mathjs/issues/694