akabel

16 Reputation

4 Badges

18 years, 173 days

MaplePrimes Activity


These are Posts that have been published by akabel

Hi, one of my maple codes gave surprising results. After some debugging, it could be traced to a behavior that can be illustrated by the following code: f := proc(x := X) option remember; x; end proc: g := proc(x := X) x; end proc: X := 0: f(); g(); X := 1: f(); g(); The code outputs 0 0 0 1 Apparently, the fact that X has been updated is not considered in the remember table. Is this behavior documented? It is very counterintuitive; one would expect the 'remember' facility to be transparent and f() and g() to behave identically.
Page 1 of 1