> 其他 >
定积分C语言用下列三种方法实现进行积分数值计算 1.矩形法 2.变步长梯形法 3.龙贝格法
用正弦函数输出
人气:398 ℃ 时间:2020-01-30 01:51:50
解答
#include "stdio.h"
#include "math.h"
double f (double x)
{
return sin(x);
}
double Jifen(double a,double b)
{
double h;
double fx;
double x;
int i;
double sum=0;
h=fabs(a-b)/100;
x=a;
for(i=0;i
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版