[GiNaC-devel] New in GiNaC: step function
Chris Dams
Chris.Dams at mi.infn.it
Thu Mar 9 17:19:08 CET 2006
Dear all,
I added the step function to GiNaCs repertoire of built-in functions. It
is the real function step(x)=1 for x>0 and step(x)=0 for x<0.
Considering the fact that numerical evaluation may yield a small
imaginary part due to rounding errors, a possible imaginary part of a
numerical argument is ignored. Furthermore step(0)=1/2. This, however,
should not be taken too seriously as there is also the automatic
evaluation step(x)^2 -> step(x). In the sense of distributions it does
not matter what the value of step(0) is.
Best,
Chris
More information about the GiNaC-devel
mailing list