How to make a program that calculates this integration? Thanks I appreciate.
조회 수: 1 (최근 30일)
이전 댓글 표시
I do not know how to make a symbolic integration for the two first integrals upon writing a program.
댓글 수: 0
채택된 답변
John D'Errico
2016년 7월 31일
편집: John D'Errico
2016년 7월 31일
To be honest, I'd probably do the inner integral (I assume that is on y) by hand, so we get that as:
(16 - 3*x^2 - z^2) - (x^2 + z*2) = 16 - 4*x^2 - 2*z^2
The other two integrals are as easy to write by hand too. So I'm not sure what the problem is here.
If you'd rather do it using syms, I'd split it up into three integrals to make it easier to read.
syms x y z
>> Iy = int(1,y,[x^2 + z^2,16-3*x^2-z^2])
Iy =
- 4*x^2 - 2*z^2 + 16
Given the limits of integration, I assume the middle integral must be on z, as the limits are a function of x. But you did write it as dy dx dz. Assuming the middle integral is on z, then you would write it as
Iz = int(Iy,z,[-sqrt(4-x^2),sqrt(4-x^2)])
You should do the rest. In the end, you should get a nice, round multiple of pi as the answer. But I don't want to do your homework for you.
댓글 수: 0
추가 답변 (1개)
Walter Roberson
2016년 7월 31일
편집: Walter Roberson
2016년 7월 31일
syms x y z
int(int(int(1, y, x^2+z^2, 16-3*x^2-z^2), x, ........ so on
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Assumptions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!