Question: different answers to same command

Why do I get different answers for the same command?

 different_answers.mw


 

``

restart

x := proc (n) options operator, arrow; cos(n*Pi) end proc;

proc (n) options operator, arrow; cos(n*Pi) end proc

(1)

"f:=k->"sum(k*x(n), n = 2 .. 3);f(1);

0

 

f(1)

(2)

f := proc (k) options operator, arrow; sum(k*x(n), n = 2 .. 3) end proc;

proc (k) options operator, arrow; sum(k*x(n), n = 2 .. 3) end proc

 

0

(3)

``


 

Download different_answers.mw

Please Wait...