如何使用pow()函数? [已关闭]

问题描述 投票:0回答:2

如何在 C 程序中使用幂函数 (

pow
)?

c function
2个回答
5
投票
#include <math.h>
double pow(double x, double y); // where x is the base, y is the exp

4
投票
#include <math.h>

double pow(double x, double y);
float powf(float x, float y);
long double powl(long double x, long double y);
© www.soinside.com 2019 - 2024. All rights reserved.