MATLAB Answers

using simpson 3/8 rule

43 ビュー (過去 30 日間)
Arvind Sharma
Arvind Sharma 2018 年 1 月 18 日
回答済み: Birdman 2018 年 1 月 18 日
F(x)= x*((1/1+exp(x-5))-(1/1+exp(3-x)))*(1/((E-x)^2+2))
where x limit from 0 to 5 nm
and E vary from 0 to 3
can anyone tell me matlab code for this to solve this integration using simpson 3/8 rule

  0 件のコメント



Birdman 2018 年 1 月 18 日
By downloading the file from the following link( simpson.m):
and type
x=0:0.1:5;%you can change the increment
E=0:3/(numel(x)-1):3;%has to be same length with x
y= x*((1/1+exp(x-5))-(1/1+exp(3-x)))*(1/((E-x)^2+2));

  0 件のコメント


その他の回答 (0 件)


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by