hola como estan necesito ayuda para poder usar una funcion que trabaje con numeros imaginarios.
para que el codigo me reciba numeros maginarios o raices negativas y no se rompa el codigo.
por favor help..
The complex class (#include <complex> ) handles complex numbers for you. Negative roots aren't a problem. You'll just have to watch out for the things the documentation says will raise exceptions (like a base of zero and a negative exponent).
How is it you get the imaginary numbers?
What is the function supposed to do?
Is this homework?