Head Over Heels in Love
This is what happens when two logarithmic spirals love each other very much.
% Vary k from 1.5 to 3.5 k = 1.5; t = linspace(0,k*pi,200); r = exp(t); x = r.*cos(t); y = r.*sin(t); plot(x,y,-x,y,'LineWidth',2,'Color',[1 0 0]) axis equal set(gcf,'Color','white') title('r = e^\theta with reflection')
Happy Valentines Day!
评论
要发表评论,请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。