Store your complex numbers in a structure of some sort that has two variables - one to store the real part and one to store the complex part.
Then to add two complex numbers, add the real parts together and add the complex part together, eg:
(2 + 3i) + (5 - 2i) = ((2 + 5) + (3 + -2)i)
= (7 + i)
how you actually do this will be entirely up to the language you are using for your programming.
Chat with our AI personalities
That depends a lot on what you want to solve. In general, you can do quite a lot by simply considering the complex number like any polynomial, and remembering that i2 = -1. For example, to add two complex numbers, you simply add the real and the imaginary part of both numbers.
That depends what is the problem given, and what you want to solve. You may want to read an introductory article on complex numbers, to learn how you add them, multiply them, etc.That depends what is the problem given, and what you want to solve. You may want to read an introductory article on complex numbers, to learn how you add them, multiply them, etc.That depends what is the problem given, and what you want to solve. You may want to read an introductory article on complex numbers, to learn how you add them, multiply them, etc.That depends what is the problem given, and what you want to solve. You may want to read an introductory article on complex numbers, to learn how you add them, multiply them, etc.
See the related link (below) for a video that may help.
Add the numbers into one variable as you read them in. But if you prefer, you can read the numbers into an array and then use a loop to add the numbers together.
You have to add the two numbers together then multiply it by 2.