Mathematica Returning Conditional Expression

Click For Summary
SUMMARY

The discussion centers on a user encountering a ConditionalExpression when performing a volume integral in Mathematica 8. The user’s input involves multiple nested Integrate functions, but the output includes conditions that complicate the result. The user seeks a method to restrict Mathematica to return results only for real numbers. The solution involves utilizing the Assumptions option in the Integrate function to specify that the variables are real.

PREREQUISITES
  • Understanding of volume integrals in calculus
  • Familiarity with Mathematica syntax and functions
  • Knowledge of ConditionalExpression in Mathematica
  • Experience with the Assumptions option in Mathematica's Integrate function
NEXT STEPS
  • Explore the use of the Assumptions option in Mathematica's Integrate function
  • Learn about ConditionalExpression and its implications in Mathematica
  • Study volume integrals and their applications in Mathematica
  • Investigate real number constraints in symbolic computation
USEFUL FOR

Mathematics students, researchers using Mathematica for symbolic computation, and anyone performing volume integrals in Mathematica who needs to manage output conditions effectively.

davidallen353
Messages
1
Reaction score
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

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
 
Physics news on Phys.org
Assumptions is an option you can supply to Integrate
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K