#include "stdafx.h"
#include <math.h>
// 数值积分
// Newton-Cotes积分公式
void
NewtonCotesIntegral()
{
printf
(
"牛顿-科茨积分公式:\n"
);
int
n;
double
h;
int
i;
double
a=0,b=0.5;
d
#include "stdafx.h"
#include <math.h>
// 数值积分
// Newton-Cotes积分公式
void
NewtonCotesIntegral()
{
printf
(
"牛顿-科茨积分公式:\n"
);
int
n;
double
h;
int
i;
double
a=0,b=0.5;
d