- 博客(1)
- 资源 (1)
- 收藏
- 关注
原创 自适应求积算法 MatLab版
%自适应simpson算法 clc clear close all; syms x f(x)=100/(x^2)*sin(10/x);%目标函数 a=1;b=3;%初始区间 TOL=1E-4;%误差容限 [s,fcount]=acsimpson1(f,a,b,TOL); t = 1:0.001:3; plot(t,f(t)) hold on disp("自适应求积结果:") result = vpa(s); fprintf("result= %f",result); % 画出f(x)图像 functio.
2021-05-27 23:08:53
3692
1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅