Welcome 微信登录

首页 / 操作系统 / Linux / 关于C语言中的 幂函数 pow

函数名: pow
功 能: 指数函数(x的y次方)
用 法: double pow(double x, double y);
程序例: #include <math.h>
#include <stdio.h> int main(void)
{
double x = 2.0, y = 3.0; printf("%lf raised to %lf is %lf ", x, y, pow(x, y));
return 0;