代码搜索:Simpson
找到约 618 项符合「Simpson」的源代码
代码结果 618
www.eeworm.com/read/351636/3104255
p simpson.p
extern int simpru_(E_fp f, doublereal *a, doublereal *b, integer *m, doublereal *srule);
extern int xsimpru_(E_fp f, doublereal *a, doublereal *b, integer *m, doublereal *srule);
www.eeworm.com/read/295457/8160955
m simpson.m
function y=simpson(m)
for j=1: m
a(j)=4*fun((2*j-1)/(2*m));
end
for i=1: m-1
b(i)=2*fun((2*i)/(2*m));
end
vpa(1/(6*m)*(sum(a)+sum(b)+fun(0)+fun(1)))
www.eeworm.com/read/295209/8179977
h simpson.h
www.eeworm.com/read/172012/9726698
m simpson.m
function I = simpson(fun,a,b,npanel)
% simpson Composite Simpson's rule
%
% Synopsis: I = simpson(fun,a,b,npanel)
%
% Input: fun = (string) name of m-file that evaluates f(x)
%
www.eeworm.com/read/366941/9790926
m simpson.m
function I = simpson(fun,a,b,npanel)
n = 2*npanel + 1;
h = (b-a)/(n-1);
x = a:h:b;
f = feval(fun,x);
I = (h/3) * ( f(1) + 4*sum(f(2:2:n-1)) + 2*sum(f(3:2:n-2)) + f(n) );
% f(a)
www.eeworm.com/read/366941/9790940
asv simpson.asv
function I = simpson(fun,a,b,npanel)
n = 2*npanel + 1;
h = (b-a)/(n-1);
x = a:h:b;
f = feval(fun,x);
I = (h/3) * ( f(1) + sum(f(2:n-1)) + 0.5*f(n) );
www.eeworm.com/read/415549/11063303
c simpson.c
www.eeworm.com/read/269352/11100745
m simpson.m
function simpson(a,b,M)
%Simpson求积公式
%Input f is the function
% a,b是积分下限与上限
% M是f的四阶导在(a,b)间的最大值
%Output
% S 求积值
% R 余项值
syms x;
f=input('f=');
S=(b-a)*(s
www.eeworm.com/read/134856/13972821
exe simpson.exe
www.eeworm.com/read/134856/13972829
layout simpson.layout
[Editors]
Focused=0
Order=0
[Editor_0]
Open=1
Top=1
CursorCol=21
CursorRow=6
TopLine=1
LeftChar=1