Help save net neutrality! Learn more.
Close

#141 0^i is 0, should be undefined

v1.0 (example)
closed-fixed
nobody
None
4
2016-04-25
2013-07-12
Cousteau
No

0^i (zero to the power of the imaginary unit) is currently evaluated as 0. Theoretically, this result is indeterminate (the argument doesn't converge and the modulus depends on how you approach 0). Qalculate! should warn about this and yield undefined.
(This is not very important; it's not like you calculate 0^i everyday; but since Qalculate! warns you when you calculate 0^0, something many programs just assume to be 1, it would make sense that it did here too)

Discussion

  • Cousteau

    Cousteau - 2014-10-10

    I've tried to calculate 0^i and almost went crazy so I'll just assume that you're right.

    I second this. I don't think it'd be mandatory that Qalculate! yielded undefined; it'd be enough with it warning and then yielding whatever is considered to be "the most widely accepted value for 0^i" (e.g. 0), as it does with 0^0. But it should at least clarify that it's undefined (same as for 0^0).

     
  • Hanna K.

    Hanna K. - 2016-04-25
    • Status: open --> closed-fixed
     

Log in to post a comment.