% Exact volume of the unit hypersphere in Ndim dimensions.
function volume = answer(Ndim)

volume = pi.^(Ndim./2)./gamma(Ndim./2 + 1);

% REFERENCE:
% Page name: N-sphere
% Author: Wikipedia contributors
% Publisher: Wikipedia, The Free Encyclopedia.
% Date of last revision: 22 December 2008 20:47 UTC
% Date retrieved: 5 February 2009 04:48 UTC
% Permanent link: 
%    http://en.wikipedia.org/w/index.php?title=N-sphere&oldid=259587522
% Primary contributors: Revision history statistics
% Page Version ID: 259587522