2D weirdness

awass 201 Maple

Here is a simple procedure that works fine if entered using 1D Maple input
> Q:=proc(x)
end proc;
but if you use 2D math input
> q:=proc(x)

  end proc;

Error, unterminated procedure

      procApplyFunction(x) sinApplyFunction(x),

      Typesetting:-merror("unterminated procedure")))
Error, unable to parse
    Typesetting:-mambiguous(  Typesetting:-mambiguous(end,

      Typesetting:-merror("unable to parse")) procsemi)

Ouch! But to confuse things further the following procedures may be entered using 2D math and work fine:
>H := proc (x) x^2*sin(x) end proc;
>K := proc (x) sin(x^2) end proc;
Doesn't make any sense to me. Perhaps 2D math is not ready for prime time?


Please Wait...