Eric Germaneau wrote: > Hello everyone, > > I'm wondering whether gsl provides a function which computes the nth > root .....
You could use r = std::exp( std::log( x ) / n ) If you want greater accuracy, try looking at the chapter on 1-dimensional root finding. If you want the complex roots, gsl_complex_polar( r, a ), where a = 0, 2 * Pi / n, ... 2 * (n - 1) * Pi / n. -- JDL _______________________________________________ Help-gsl mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gsl
