nSphere

Build Status

This is an implemetation of Monte Carlo algorithm for finding volume of an n-Dimensional sphere. The program was written for TGT Oil Internship. The folowing 'best practices' were used.

  • Tests
  • Continuous Integration
  • Github

To use is you need only one file: sphere.cpp. To calculate the volume use function compute_area(dimension, radius, iters).

Example:

    double v = compute_volume(3,2,1000000); //33.51