code for integral function

5 ビュー (過去 30 日間)
an
an 2014 年 4 月 7 日
回答済み: Alberto 2014 年 4 月 7 日
∫_r^(r+d)▒(E0 〖(Es) 〗^2 d^2 y^2 dy)/((d+r)^2 d^3 )
how to write code for this function in matlab.please help

回答 (1 件)

Alberto
Alberto 2014 年 4 月 7 日
The common way to do this will be like:
syms r d y;
f= (r^(r+d))*( d^2 * y^2)/( (d+r)^2*d^3 )
F = int(f, y) % Calculate undefinite integral using variable y
G= int(F,x) % and again using x
a=int(F, x, -15, 15) % for definite integration
Good luck :)

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by