math.Dim is the Go version of the C99 fdim function. That in turn
comes from the Fortran DIM function. The name in Fortran may come
from "difference from minimum." DIM(x, y) returns the difference
between x and the minimum of x and y.
in general any C math function is automatically OK for Go's math
package with approximately the same name (the 'f' needed in C is not
needed in Go, where the package specifier math is sufficient). Any
other function, or a different name, requires justification.
Ian