%
%       lab3.m
%
%   ....Simple script to illustrate Lab 3.
%
%       Written by Von P. Walden
%                  24 February 1998
%

% Part A - Solid angle propagates from left to right along sphere.
area1 = solid_angle(0,pi/4,-pi,-3*pi/4)
area2 = solid_angle(0,pi/4,-3*pi/4,-pi/2)
area3 = solid_angle(0,pi/4,-pi/2,-pi/4)

area4 = solid_angle(-pi/4,0,pi/4,pi/2)   % Solid angle is hidden behind sphere.

% Part B - Areas are the same as the hand integration.
area_sphere = solid_angle(-pi/2,pi/2,-pi,pi)
area_hemisphere = solid_angle(-pi/2,pi/2,-pi,0)

