%approximates Pi by square roots
N = 10;
a = 1;
for i = 1:N
a = sqrt(2-sqrt(4-a^2));
end;
format long;
a*3*2^N
