Question: A gamma puzzle awaiting an explanation

Maple's gamma constant appears to misbehave.

> 

restart;

> 

kernelopts(version);

`Maple 2020.1, X86 64 LINUX, Jul 30 2020, Build ID 1482634`

> 

evalf(gamma);     # this one is expected

.5772156649

> 

evalf(gamma(0));  # this one may be explained

.5772156649

> 

evalf(gamma(1));  # how to explain this one?

-0.7281584548e-1

Things get more puzzling.  Let's declare gamma as local:

> 

local gamma:

Warning, A new binding for the name `gamma` has been created. The global instance of this name is still accessible using the :- prefix, :-`gamma`.  See ?protect for details.

> 

evalf(gamma);     # this is good

gamma

> 

evalf(gamma(0));  # expected an unevaluated gamma(0) here!

.5772156649

> 

evalf(gamma(1));  # expected an unevaluated gamma(1) here!

-0.7281584548e-1

 

Download gamma-puzzle.mw

 

Please Wait...