MATLAB Answers

0

integral definite, what is the code to implement it?

Asked by Antonino Alesci on 23 Sep 2019
Latest activity Answered by Walter Roberson
on 23 Sep 2019
I have to imlement this integral...help.

  3 Comments

What have you done already? What about analytical solution
omega: is a vector (1x229)
Omega is a number
What are you trying to say?

Sign in to comment.

2 Answers

Answer by Be Matlabi on 23 Sep 2019

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.

  0 Comments

Sign in to comment.


Answer by Walter Roberson
on 23 Sep 2019

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);

  0 Comments

Sign in to comment.