Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

sphere.h File Reference

Contains a function which checks if a point is contained in an unit sphere. More...

Go to the source code of this file.

Functions

bool point_inside_sphere (double *x, int n)
 Checks if a point is contained inside an unit sphere.


Detailed Description

Contains a function which checks if a point is contained in an unit sphere.

This function is used as an initial example for Monte-Carlo integration.

Author:
Arthur van Dam, dam@math.uu.nl

Function Documentation

bool point_inside_sphere double *  x,
int  n
 

Checks if a point is contained inside an unit sphere.

Parameters:
x The n-dimensional point to check for.
n The number of dimensions.


Generated on Fri Sep 4 18:03:45 2009 for LabSci RNG/MC generators by  doxygen 1.3.9.1