Skip to content

Commit

Permalink
Provide tau constant (also: τ)
Browse files Browse the repository at this point in the history
The Tau Manifesto <http://tauday.com/tau-manifesto>

See also
<https://en.wikipedia.org/wiki/Turn_(geometry)#Tau_proposal>
and
<http://tauday.com/state-of-the-tau>

A patch for S32 is also submitted, as is a spectest.
  • Loading branch information
Juerd committed Dec 3, 2015
1 parent 09a3e3d commit c4f8cad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/Num.pm
Expand Up @@ -234,10 +234,12 @@ my class Num does Real { # declared in BOOTSTRAP
}
}

my constant pi = 3.14159_26535_89793_238e0;
my constant e = 2.71828_18284_59045_235e0;
my constant tau = 6.28318_53071_79586_476e0;
my constant pi = 3.14159_26535_89793_238e0;
my constant e = 2.71828_18284_59045_235e0;

my constant π := pi;
my constant τ := tau;
#?if moar
my constant 𝑒 := e;
#?endif
Expand Down

0 comments on commit c4f8cad

Please sign in to comment.