Borrar filtros
Borrar filtros

vpaintegral() not showing output

4 visualizaciones (últimos 30 días)
Bathala Teja
Bathala Teja el 15 de Sept. de 2021
Comentada: Bathala Teja el 16 de Sept. de 2021
I want to integrate my two variable function w.r.t one variable.
And i used vpaintegral() for that, But it is not showing expected output.
i gave my script below
syms theta phi
Nr = 20;
p = 2;
D = 1/(0.6*10^-3);
Q = 1/(40.27*10^-3);
theta_d = 1.1652;
theta_q = 0.4056;
Aog = (2/pi)*(D*theta_d+Q*theta_q);
k = 2;
Ginvi = 0;
for i=2:2:k
Akg = (4*(Q-D)/(pi*i))*(-1)^((i+4)/2)*sin(i*theta_q);
Ginvi = Ginvi+Akg*cos(p*i*(phi-theta));
end
Ginv = vpa((Ginvi+Aog), 4)
Ginv = 
ginv = vpaintegral(Ginv, phi, 0, 2*pi)
ginv = 
I want to see "ginv" but it is showing like above.
What to add for getting output??

Respuesta aceptada

Walter Roberson
Walter Roberson el 15 de Sept. de 2021
Editada: Walter Roberson el 15 de Sept. de 2021
You cannot. vpaintegral always gives up immediately when there are unbound variables besides the variable of integration.
vpaintegral is strictly a (symbolic) numeric solver. It never attempts to split the system to do what it can leaving the rest.
  3 comentarios
Walter Roberson
Walter Roberson el 15 de Sept. de 2021
int()
Bathala Teja
Bathala Teja el 16 de Sept. de 2021
ok thank you

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by