Skip to content

proposal: math: add Tau in constants #40663

@lypwig

Description

@lypwig

Add Tau in mathematical constants.

In many cases, formulas can be more elegant using the Tau constant instead
of Pi. You will find a good number of arguments and explanations
in the Tau manifesto, which describes Tau as:

the most important numbers in mathematics, perhaps the most important:
the circle constant relating the circumference of a circle to its linear
dimension. For millennia, the circle has been considered the most
perfect of shapes, and the circle constant captures the geometry of the
circle in a single number.

The constant is based on the corresponding page in the online
encyclopedia of integer sequences
, and is also
equal to math.Pi * 2.

Usage:

perimeter := math.Tau * radius

I just created the PR #40662 that adds the constant, but I'm now creating this issue to have some feedback before signing the CLA.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions