Use the Monte Carlo method for finding volume. Calculate the volume of a Torus with the axis of revolution having a radius of 2 and the circle cross section having a radius of 1. All graphs are created using the app. GeoGebra.
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.
Below you will find my parallel C++ code. Due to the symmetry of the torus, I did the Monte Carlo test only in one of the octants. The result of it is 8 1 of the entire volume.