How to solve Double integral with variable bounds in Matlab?

10 次查看(过去 30 天)
Hi. for solving an equation by using MATLAB, in the first step, we need to solve some dual integral. boundary of integrals are defined by functions, and the integrand is symbolic. when we use 'int' or 'dblquad' functions, MATLAB didn't give us an suitable and acceptable answer. several parts of answer of integrals due to not being explicit,may remove by each other. what is the solution for this problem? (For example, one of the integrals is shown in the following pic.)
  1 个评论
Walter Roberson
Walter Roberson 2017-12-17
Because you have not constrained the range of the variables, MATLAB must assume that they could be imaginary and must assume that g-r*sin(theta) could be 0 (leading to division by 0) or that cos(phi) could be 0 (leading to division by 0). a/cos(phi) could be greater than R, involving a backwards integration, and phi could be greater than pi, involving a backwards integration. It is tricky to handle the infinities correctly, to automatically calculate the limits properly.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Calculus 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by