<

Caution, certain kinds of earlier input can affect the results from using the 2D Input syntax for operator assignment.

kernelopts(version)

`Maple 2020.1, X86 64 LINUX, Jun 8 2020, Build ID 1474533`

restart

f := proc (x) options operator, arrow; sqrt(x) end proc


The following now produces a remember-table assignment,
instead of assigning a procedure to name f, even though by default
     Typesetting:-Settings(functionassign)
is set to true.

"f(x):=x^(2)*sin(x)"

x^2*sin(x)

f(t)

t^(1/2)

f(1.4), 1.4^2*sin(1.4)

1.183215957, 1.931481471

restart

NULL


With the previous line of code commented-out the following
line assigns a procedure to name f, as expected.

If you uncomment the previous line, and re-execute the whole
worksheet using !!! from the menubar, then the following will
do a remember-table assignment instead.

"f(x):=x^(2)*sin(x)"

proc (x) options operator, arrow, function_assign; x^2*sin(x) end proc

f(t)

t^2*sin(t)

f(1.4), 1.4^2*sin(1.4)

1.931481471, 1.931481471

``

Download operator_assignment_2dmath.mw


Please Wait...