integral definite, what is the code to implement it?

1 次查看(过去 30 天)
I have to imlement this integral...help.

回答(2 个)

Basil C.
Basil C. 2019-9-23
syms r
expr= 2*pi*rho*(omega- W/2)*W*r^3;
F = int(expr,a,b) ,it computes the definite integral of expr from a to b.

Walter Roberson
Walter Roberson 2019-9-23
Assuming omega is a numeric vector and that an output is to be created for each:
syms pi rho Omega W r R
expr = 2*pi*rho*(Omega- W/2)*W*r^3;
Tn_inf = int(expr, r, 0, R);
all_Tn_inf = subs(Tn_inf, Omega, omega);

类别

Help CenterFile Exchange 中查找有关 Calculus 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by