- #1
davidallen353
- 1
- 0
I am attempting to do a simple volume integral over a particular shape. However Mathematica will not simply return an answer. For my input
It returns
The answer it actually returns is correct, so my question is how do I tell Mathematica that I am only concerned with Real numbers. I am using Mathematica 8
Code:
Volume = Integrate[
Integrate[Integrate[1, {z, 0, c}], {y, 0, b}], {x, 0, a}] +
Integrate[
Integrate[Integrate[1, {z, c, c + a}], {y, b/2, b - \[Rho]}], {x,
0, a}] +
Integrate[
Integrate[
Integrate[
1, {z, c, a + c - Sqrt[-b^2 + 2 b*y - y^2 + \[Rho]^2]}], {y,
b - \[Rho], b}], {x, 0, a}]
It returns
Code:
ConditionalExpression[
a b c + a^2 (b/2 - \[Rho]) +
a (a \[Rho] -
1/4 \[Pi] \[Rho] Sqrt[\[Rho]^2]), ((Im[\[Rho]] >= 0 &&
Im[b] Re[\[Rho]] <= Im[\[Rho]] Re[b]) || (Im[b] Re[\[Rho]] >=
Im[\[Rho]] Re[b] && Im[\[Rho]] <= 0)) &&
Re[\[Rho] Im[b] - b Im[\[Rho]]]^2/Re[\[Rho]]^2 <= 1]
The answer it actually returns is correct, so my question is how do I tell Mathematica that I am only concerned with Real numbers. I am using Mathematica 8