Question: Plot legends less than curves

Hello everyone!

I want to plot few curves. I need plot legends with slected curves only. When I try to do so, I get an error saying the number of legends are less that the curves( not exact words obviously).

I am using this sample code please help me to achieve the goal.

plot([cos(x)^2, 1-(1/2)*x, x^2], x = -Pi .. Pi, legend = [typeset("Curve: ", cos(x)^2), typeset("Curve: ", 1-(1/2)*x)])

The maple file is attached here

legend.mw

Please Wait...