P
Peng Yu
Hi,
I'm wondering how to get the cubic root for a complex number? It seems
that cbrt does not work complex numbers.
Thanks,
Peng
#include <complex>
#include <iostream>
int main () {
std::complex<double> x(2, 2);
std::cout << cbrt(x) << std::endl;
}
I'm wondering how to get the cubic root for a complex number? It seems
that cbrt does not work complex numbers.
Thanks,
Peng
#include <complex>
#include <iostream>
int main () {
std::complex<double> x(2, 2);
std::cout << cbrt(x) << std::endl;
}