#pragma once #include "math.h" #include "iAlgMath_global.h" //求x的n次方根 class I_ALGMATH_EXPORT zxNthRoot { public: zxNthRoot(); ~zxNthRoot(); public: //求n次方根主函数 static double nthroot(double x,double n); //决定n次方根的正负 static int nthrootssign(double x); //是否超过范围 static bool isFinite(double x); };