Getting complex value for real integration
Mostrar comentarios más antiguos
I'm getting complex value in real integration while trying to find area under ellipse as shown in below figure. Please advise

9 comentarios
Mithun Kumar Munaganuri
el 31 de Mzo. de 2022
Did you specify somewhere that
4*a^2 >= w^2
?
No, you didn't. That's why your "sqrt" can become complex-valued.
Maybe an "assume" will work.
Mithun Kumar Munaganuri
el 31 de Mzo. de 2022
Torsten
el 31 de Mzo. de 2022
Your assumption w <= 2a is not sufficient.
It is not equivalent to the assumption w^2 <= 4*a^2.
Mithun Kumar Munaganuri
el 31 de Mzo. de 2022
Steven Lord
el 4 de Abr. de 2022
Please state with words and equations (not code) the specific problem you're trying to solve, so we can check that the code you've written is the correct code to solve that problem.
You're trying to compute the area bounded by a portion of an ellipse, the x axis, and potentially part of the y axis (from the way your picture is drawn.) Where are the foci of the ellipse, what are its major and minor axes lengths, or what is the equation that generates this ellipse?
If you hope to find the area (or half the area) of the ellipse, you are mistaken.
This would only work if the y-coordinate for the center of the ellipse lies on the x-axis.
Mithun Kumar Munaganuri
el 4 de Abr. de 2022
Mithun Kumar Munaganuri
el 4 de Abr. de 2022
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Mathematics en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


