Question on complex arithmetic

  • Thread starter Thread starter FrostScYthe
  • Start date Start date
  • Tags Tags
    Arithmetic Complex
FrostScYthe
Messages
80
Reaction score
0
Hey, I'm working on a program but I get errors when I do my function and evaluate it with x (being a complex number)

lets say x = 2 + 3i

and my function is f(x) = (x - 3)(x - 3)(x - 3)

how would I get f(x)?
 
Physics news on Phys.org
What do you mean you get "errors"? What medium are you using to create this program?
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top