- 平方:num * num;
pow(num, 2)
- 开平方
sqrt(num);
- 求斜边
float hypotf(float x,float y)
double hypot(double x, double y)
long double hypotl(long double x, long double y)
pow(num, 2)
sqrt(num);
float hypotf(float x,float y)
double hypot(double x, double y)
long double hypotl(long double x, long double y)