How to solve Double integral with variable bounds in Matlab?

조회 수: 5 (최근 30일)
Ehsan
Ehsan 2017년 12월 17일
댓글: Walter Roberson 2017년 12월 17일
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에서 MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by