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!
3 Respuestas
+ 6
Drenhyll is right there is a C++ complex library. Reference below.
http://www.cplusplus.com/reference/complex/
+ 3
And if you want to understand how things work in that, you may use this:
https://code.sololearn.com/cBtitZp78PHp/?ref=app
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.