-
Notifications
You must be signed in to change notification settings - Fork 64
Closed
Description
Hello,
I'm not sure if it's a bug or a known rounding behavior.
If I compute the sqrt() of a complex number -9+0i the correct solution should be 0+3i
but with this module (I used num crate) I got:
0.00000000000000018369701987210297+3i
As far as I know some math lib implement hard-coded case for some exact value.
Did you considered doing the same?
Luigi
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels