func4.m
资源名称:数值分析课程设计.zip [点击查看]
上传用户:zhdd911129
上传日期:2007-05-11
资源大小:722k
文件大小:0k
源码类别:
matlab例程
开发平台:
Matlab
- a=linspace(0,1,500)
- s=0;
- for i=2:499 %i can't start from 1,else the denominator will be 0
- s=s+func4(a(i))+4*func4(a(i)+1/1000)+func4(a(i+1))
- disp(s)
- end
- s=s*1/500/6