Let there be a solid characterized by the equation ( a x ) 2 . 5 + ( b y ) 2 . 5 + ( c z ) 2 . 5 < 1 .
Calculate the volume of this solid if a = b = 2 and c = 3 .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Interesting. I am not familiar with the point picking method. How do you program that? I would like to learn. If you want to know how I solved this equation, you can visit this note I wrote Dirichlet Triple Integral .
Log in to reply
Here's my code in Java
1 2 3 4 5 6 7 8 9 |
|
I created a method isgood() whose code is as follows :
1 2 3 4 5 6 7 8 9 10 11 12 |
|
And the result was as follows
1 |
|
Log in to reply
can you please tell me what is the function of the statement you wrote Random rn=new Random() ; and the nextDouble(); method.
Essentially, he ran a monte carlo simulation by picking serval points ( x , y , z ) and seeing if they lay inside the solid.
Can you please explain how did you get 0 ≤ x , y ≤ 2 and 0 ≤ z ≤ 3 i.e. how you decided on the upper limits of 2 and 3 ?
Problem Loading...
Note Loading...
Set Loading...
My method is the computer programming method that is point picking method.
I generate a random point ( x , y , z ) where 0 ≤ x , y ≤ 2 and 0 ≤ z ≤ 3 and check for each try whether the equation at the left side is less than 1 or not.
After 4 0 0 0 0 0 0 0 trials we have got total of 2 5 3 5 6 2 8 0 points inside our solid
Hence volume of our solid in first quadrant = P o i n t s i n s i d e t h e c u b o i d P o i n t s i n s i d e t h e s o l i d × V o l u m e o f C u b o i d
Calculating we get = 1 2 × 0 . 6 3 3 9 0 7 = 7 . 6 0 6 8
Hence the entire volume is = 8 ∗ 7 . 6 0 6 8 = 6 0 . 8 5 4