Question: Problem with Math Mode vs. Text Mode (I think)

I have Maple 15.

I used one of the "Assistants" to solve a problem.

It offered me the command line code that would have solved the problem without the Assistant.

I saved that code to a file, and later tried to paste it into a new Worksheet.

It won't execute.  I can't convert it to anything that executes.

I assume Maple is viewing it as text, and not something that is executable.

sol1 := dsolve([diff(x(t),t) = y(t), diff(y(t),t) = -x(t), x(0) = 0, y(0) = 1], numeric);
sol1(10.000000);
plots[odeplot](sol1, 0..10, color = red);

I've selected it and tried right clicking with "Convert to 2D Math".  No go.

I've tried "Execute Selection."  No go.

It appears blue and not italicized.

If I grab "dsolve([diff(x(t),t) = y(t), diff(y(t),t) = -x(t), x(0) = 0, y(0) = 1], numeric);" and paste it into a separate line, it becomes black and italicized, and then is executable.

HELP!!

Thanks.

Please Wait...