clc
clear

disp "Taylor Waller"

a= 2;

t=linspace(0, 2*pi, 1000);

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

plot(x,y, 'b-', 'LineWidth', 1.5);
title('Three Petal Rose');
xlabel('x')
ylabel('y')

grid on;
axis equal;

Embed on website

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