clc
clear

a = 2;
t = (0: 2*pi: 1000);

x = a*cos(3*t).*cos(t);
y = a*cos(3*t).*sin(t);

plot(x, y, 'LineWidth', 2);
title('Three-Petal Rose');
xlabel('x');
ylabel('y');
axis equal;
grid on;

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: