Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Wrong handling of i (imaginary unit) #281
Hello, I'm from the team who develops ubuntu-calculator-app for the Ubuntu Phone.
He, is the Ubuntu Touch Calculator using mathjs? That's awesome :).
Good point. I've improved the formatting of complex numbers (see commit c29f332), the real or imaginary part is now rounded to zero when the difference is larger than the configured precision. That should solve (read: hide) these kind of numeric round-off errors.
This should be fixed now in the
Thanks for the fast fix :-)
I updated mathjs in the ubuntu calculator app.
FYI the calculator that is shipped atm on ubuntu phones doesn't use mathjs: we're working on a new version, developed from scratch, that uses mathjs.
This new version will substitute the actual version in next weeks: we hope to push it as update before the end of March, with the firsts sold phones.
Thanks for your amazing work!