Why are complex numbers in Python denoted with 'j' instead of 'i'?

后端 未结 5 2231
-上瘾入骨i
-上瘾入骨i 2020-12-05 03:55

I know this is an electrical engineering convention, but I\'m still wondering why it was chosen for Python. I don\'t know other programming languages with complex-number lit

5条回答
  •  有刺的猬
    2020-12-05 04:46

    j (not J) is used in Electrical Engineering as mentioned before. i for current: yes, both I (dc) and i (ac) are used for current.

提交回复
热议问题