%2016-06-08: chaitanya athale, iiser pune
%Logarithmic spiral
%http://mathworld.wolfram.com/LogarithmicSpiral.html
function logSpiral
theta=linspace(0,2*pi,100);
a=2;%const
b=.5;%const
r = a.*exp(b.*theta);
x=r.*sin(theta);
y=r.*cos(theta);

plot(x,y,'-b'),xlabel('x'),ylabel('y'),title('Logarithmic spiral');
end