Skip to content

Wrong handling of i (imaginary unit) #281

@gcollura

Description

@gcollura

Hello, I'm from the team who develops ubuntu-calculator-app for the Ubuntu Phone.
I've encountered a bug with the imaginary unit with your library. If you try to calculate the power of i (i^2) the returned value is not -1, while the definition of i states that _i_² = -1, mathjs returns -1 + 1.2246467991474e-16i.
The issue is also reproduced in this pad http://jsbin.com/fotuxuzuvo/1/edit?html,output
Thanks a lot for your support!

Giulio

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions