You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
387 B
C++
25 lines
387 B
C++
#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);
|
|
};
|