integral definite, what is the code to implement it?

조회 수: 1 (최근 30일)
Antonino Alesci
Antonino Alesci 2019년 9월 23일
답변: Walter Roberson 2019년 9월 23일
I have to imlement this integral...help.
  댓글 수: 3
Antonino Alesci
Antonino Alesci 2019년 9월 23일
omega: is a vector (1x229)
Omega is a number
darova
darova 2019년 9월 23일
What are you trying to say?

댓글을 달려면 로그인하십시오.

답변 (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에서 Numbers and Precision에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by