I want to plot limacon in scilab, I've got this equations to process:

I know that r>0 and l>0
When I compile the below code, I get this error at line 5:
Inconsistent row/column dimensions.
If I set t to a specific number, I end up with clean plot, no function in it.
I tried to change r and l to other numbers, but this doesn't do anything. Anyone have an idea what I'm doing wrong?
r=1;
l=1;
t=linspace(0,2,10);
x = 2 * r * (cos(t))^2 + l * cos(t);
y = 2 * r * cos(t) * sin(t) + l * sin(t);
plot (x,y);