Integration with Symbolic Variables

Hi,
I have a problem like that. How can i solve this?

3 comentarios

Torsten
Torsten el 12 de Mayo de 2023
What do you mean by "double integration problem" ? Is there a second integration variable apart from theta ?
Furkan KORKMAZ
Furkan KORKMAZ el 12 de Mayo de 2023
Sorry, this is my wrong. Firstly, i was thinking double integration but after that i was simplfy my problem like that.
Dyuman Joshi
Dyuman Joshi el 14 de Mayo de 2023
@Furkan KORKMAZ please check the answers posted below.

Iniciar sesión para comentar.

 Respuesta aceptada

VBBV
VBBV el 12 de Mayo de 2023
syms theta r
a=10;
x=a*(1-cos(theta));
y=a*(1-sin(theta));
r=sqrt(x^2+y^2)
r = 
I = vpaintegral(r,0,2*pi)
I = 
100.367

Más respuestas (2)

Use integral() - see DOC
E.g.:
% Step 1. Create a function handle:
F = @(theta, a)sqrt((a*(1-cos(theta))).^2+(a*(1-sin(theta))).^2);
% Step 2. Compute the integral:
INT_F = integral(@(theta)F(theta, 10), 0, 2*pi)
INT_F = 100.3668
Furkan KORKMAZ
Furkan KORKMAZ el 14 de Mayo de 2023
Editada: Furkan KORKMAZ el 14 de Mayo de 2023

0 votos

Thank you for your answers. However, I think I'm getting erroneous results because of the information I gave incomplete. I'm correcting my question.

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 12 de Mayo de 2023

Comentada:

el 14 de Mayo de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by