代码搜索:Simpson
找到约 618 项符合「Simpson」的源代码
代码结果 618
www.eeworm.com/read/129709/14232022
c simpson.c
#include
#include
double f(double x)
{
return (1+x*x)/(1+pow(x,4));
}
double g(double x)
{
return log(1+sqrt(x))/log(2.718282);
}
double p(double x)
{
return 1/(pow(c
www.eeworm.com/read/129709/14232026
txt simpson.txt
Enter m,a,b:
50 0 1
Enter the function number:
3
x=0.630072
ERR=-0.155326
www.eeworm.com/read/126128/14444930
c simpson.c
www.eeworm.com/read/123723/14615086
cpp simpson.cpp
// Simpson.cpp: implementation of the Simpson class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Simpson.h"
///////////////////////
www.eeworm.com/read/123723/14615121
h simpson.h
// Simpson.h: interface for the Simpson class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_SIMPSON_H__D4E866E8_9078_48B8_ADED_4A1BC33A4729__INCLUDED
www.eeworm.com/read/122187/14715674
c simpson.c
/*
* SIMPSON'S COMPOSITE ALGORITHM 4.1
*
* To approximate I = integral ( ( f(x) dx ) ) from a to b:
*
* INPUT: endpoints a, b; even positive integer n.
*
* OUTPUT: approximation XI t
www.eeworm.com/read/219945/14858369
c simpson.c
#include "stdio.h"
#include "math.h"
double fsimpf(x) /*要进行计算的被积函数*/
double x;
{
double y;
y=log(1.0+x)/(1.0+x*x);
return(y);
}
double fsimp(a,b,eps) /*辛普森算法*/
double a,b,eps
www.eeworm.com/read/219945/14858370
exe simpson.exe
www.eeworm.com/read/219114/14893983
c simpson.c
www.eeworm.com/read/116022/14992626