Vafilor
December 25th, 2010, 02:19 AM
Does anyone know of any Complex Number function parser for C++? Say the string is just "x", if you input sqrt(-1) it will return it in a C++ complex format? In this case, (0, 1).
Also, of a function parser that takes in a complex number itself? Say, input: complex<int> (3, 2).
(3 + 2i)? So, for the expression, "x^2", it would return (5, 12).
Thank you, and I apologize if this is in an improper location.
Also, of a function parser that takes in a complex number itself? Say, input: complex<int> (3, 2).
(3 + 2i)? So, for the expression, "x^2", it would return (5, 12).
Thank you, and I apologize if this is in an improper location.