计算平方根

2024/10/20 11:43:59

C++11标准模板(STL)- 常用数学函数 - 计算平方根 (√x)(std::sqrt, std::sqrtf, std::sqrtl)

常用数学函数 计算平方根 &#xff08;√x&#xff09; std::sqrt, std::sqrtf, std::sqrtl float sqrtf( float arg ); (1)(C99 起) double sqrt( double arg ); (2) long double sqrtl( long double arg ); (3)(C99 起) 定义于头文件 <tgmath.h> #defin…