代码搜索:Simpson
找到约 618 项符合「Simpson」的源代码
代码结果 618
www.eeworm.com/read/226955/6336649
c simpson.c
www.eeworm.com/read/492798/6409175
mht simpson.mht
From:
Subject:
Date: Tue, 12 May 2009 09:51:38 -0700
MIME-Version: 1.0
Content-Type: text/html;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-
www.eeworm.com/read/490082/6458169
m simpson.m
%
% Use Matlab's symbolic features to derive Simpson's 1/3 rule
%
% define matrix and vector...
%
% assume data pairs of: (0, y1), (h, y2), (2h, y3)
%
% fit to: f(x) = a_0 + a_1*x + a_2*x
www.eeworm.com/read/486122/6543727
c simpson.c
www.eeworm.com/read/347904/11628346
c simpson.c
www.eeworm.com/read/258573/11853595
m simpson.m
function z=simpson(func,a,b,e)
%%本函数将实现复化simpson数值积分:
%%输入:
%%func:积分函数
%%a:积分下限
%%b:积分上限
%%e:积分精度
%%输出:
%%z:积分过程
h=b-a;
c=0.5*(a+b);
f=feval(func,[a c b]);
s=h*(f(1)+4*f(2)+f(3))/6; %%计算
www.eeworm.com/read/154760/11928691
m simpson.m
function [int,t0,n] = simpson(F,l,tol,kmax)
% SIMPSON Area under string function of t using Simpson's rule.
%
% [I,ATOL,AN] = SIMPSON(F,T,TOL,N) Area under F(t), a string function
% An example of
www.eeworm.com/read/152186/12133879
c simpson.c
www.eeworm.com/read/253347/12228462
m simpson.m
%复化Simpson公式
function s=fsimpson(f,a,b,n)
%f表示被积函数句柄
%a,b表示被积区间[a,b]的端点
%n表示区间个数
%s是用复化simpson公式求得的积分值
h=(b-a)/n;
fa=feval(f,a);
fb=feval(f,b);
s=fb+fa;
x=a;
for i=1:n
x=x+h/2;
fx=feval
www.eeworm.com/read/234146/14120778
c simpson.c
#define N 10
#include
#include
double f(x)
double x;
{double y;y=exp(x);
return y;}
double simpson(a,b)
float a,b;
{double h,x,s;
s=f(a)-f(b);
h=(b-a)/10; x=a;
do