0

How can I process complex numbers in C++? Give me an example.

I am writing a program that does math with complex numbers. I need to know how to use the library for complex numbers in C++. Thank you!

16th Aug 2017, 10:05 PM
Erik Johanson
Erik Johanson - avatar
3 ответов
+ 6
Drenhyll is right there is a C++ complex library. Reference below. http://www.cplusplus.com/reference/complex/
16th Aug 2017, 10:57 PM
Karl T.
Karl T. - avatar
+ 3
And if you want to understand how things work in that, you may use this: https://code.sololearn.com/cBtitZp78PHp/?ref=app
17th Aug 2017, 1:09 PM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
0
Hey! If I'm not mistaken, there's a <complex> header you can use for complex numbers. I don't exactly know what you want to do with them so you might need other things but it's a library that implements a class for complex numbers. You might want to look it up.
16th Aug 2017, 10:48 PM
Drenhyll