- /
-
a beautiful flower
on 4 Oct 2022
- 2
- 23
- 2
- 0
- 222
clc;clear;close all
t=0:.1:360;
r=sind(5*t)+1.5;
x=r.*cosd(t);
y=r.*sind(t);
plot(x,y)
hold on
plot(.5*cos(t),.5*sin(t),'r')
a=1;b=2;
r=a*b./sqrt((b*cosd(1:90).^2)+(a*sind(1:90)).^2);
x=r.*cosd(1:90);y=-r.*sind(1:90);
plot(x-x(1),y-.47,'g')