Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我很困惑这是如何工作的
> -2.2^(1-2.2) [1] -0.3882333
但这并不
> x= -2.2 > x^(1+x) [1] NaN
是的。使用复杂:`
z <- complex(real = x, imaginary = y) z # [1] 1+1i
`
资料来源:http ://www.johnmyleswhite.com/notebook/2009/12/18/using-complex-numbers-in-r/