Real part of complex number?

后端 未结 2 1292
我在风中等你
我在风中等你 2021-01-17 09:05

I\'m just learning R, so please forgive what I\'m sure is a very elementary question. How do I take the real part of a complex number?

2条回答
  •  甜味超标
    2021-01-17 09:41

    Re(z)
    

    and

    Im(z)
    

    would be the functions you're looking for.

    See also http://www.johnmyleswhite.com/notebook/2009/12/18/using-complex-numbers-in-r/

提交回复
热议问题