|
|
|
|
|
by jacobolus
2641 days ago
|
|
1/–∞ == –0 seems like obviously the correct behavior in context of IEEE floats. I think if someone is careful it should be possible to make an implementation of complex square root on top of IEEE floats such that √(–a² + 0i) == ai, whereas √(–a² – 0i) == –ai, representing the two sides of a branch cut. Yes, √–0 should be 0. File a bug against whatever implementation returned –0 for that one. |
|