function area = crossSection(x)

% This function gives the area of the halfcircle that
% intersects the hemisphere at x.

radius = sqrt( 9 - x.^2 );

area = 0.5*pi*radius.^2 ;