How to make a program that calculates this integration? Thanks I appreciate.

3 次查看(过去 30 天)
I do not know how to make a symbolic integration for the two first integrals upon writing a program.

采纳的回答

John D'Errico
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.

更多回答(1 个)

Walter Roberson
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

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by