Question: syntax error in legend entry

Can any one find why the first code works and not the second code?
The same code, but not shown in the upload below.

reset; with(Plot)
plot(tan(x), x = -Pi .. Pi, y = -(1/2)*Pi .. (1/2)*Pi, color = ["blue"], legend = Graph*of*inverse*tan*`function"`, caption = " Domain = [-∞, ∞]; Principal range = [-π/2, π/2]")

 

``

``

``

"plot(tan^()(x),x=-Pi..Pi, y = -Pi/(2)..Pi/(2),color = ["blue"],legend = "\"inverse tan (""x"")\"", title= "Graph of inverse tan function", caption  =" Domain = [-infinity, infinity]; Principal range = [-π/2, π/2]")"

Error, invalid =

"plot(tan(x),x=-Pi..Pi, y = -Pi/2..Pi/2,color = ["blue"],legend = , title= "Graph of inverse tan function", caption  =" Domain = [-infinity, infinity]; Principal range = [-π/2, π/2]")"

 

``


 

Download SyntaxErrorinlegend.mw

Please Wait...