Magnitude of Complex Numbers in Array

前端 未结 0 1110
天涯浪人
天涯浪人 2021-02-02 12:14

I have the following array:

complex = [4+1j, 4+ 0j , 4 + 2j]

is there an efficient way to convert to the magnitude( like this pseudo code):

<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题