Skip to content

proposal: math: Add Euler-Mascheroni constant #24759

@ijxy

Description

@ijxy

The Euler-Macheroni, or Euler, constant is used internally in Gamma (to a lesser precision than other constants like Pi, Phi, E) and would be a reasonable addition, without adding any bloat or maintenance, to the standard library. This constant is important and I believe it would be a useful addition, and would also ensure that external libraries using the constant to implement more niche functions have a standard value to depend on.

I would simply add to consts.go:

Euler = 0.57721566490153286060651209008240243104215933593992359880576723 // https://oeis.org/A001620

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions