nth root implementation

后端 未结 8 1845
说谎
说谎 2020-12-30 01:16

I am working on a way to calculate the nth root of a number. However, I am having problems with the nth root of negative numbers.

Most people s

8条回答
  •  醉酒成梦
    2020-12-30 01:58

    Either use one of the many complex number packages available on the Internet, or convert your number to a rectangular position on the Argand plane, rotate it the appropriate angle as given by the root, then read it out as a (real, imaginary) pair.

提交回复
热议问题