integral definite, what is the code to implement it?

1 visualización (últimos 30 días)
Antonino Alesci
Antonino Alesci el 23 de Sept. de 2019
Respondida: Walter Roberson el 23 de Sept. de 2019
I have to imlement this integral...help.
  3 comentarios
Antonino Alesci
Antonino Alesci el 23 de Sept. de 2019
omega: is a vector (1x229)
Omega is a number
darova
darova el 23 de Sept. de 2019
What are you trying to say?

Iniciar sesión para comentar.

Respuestas (2)

Basil C.
Basil C. el 23 de Sept. de 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.

Walter Roberson
Walter Roberson el 23 de Sept. de 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);

Categorías

Más información sobre Numbers and Precision en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by