authorgravatar for chraghiali1@gmail.comalichraghi <chraghiali1@gmail.com> 2021-10-04 21:50:08+03:30
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-10-04 15:27:25-04:00
log5125788e331c146ef5f5f33be775e3538353a0b6
tree68b889f8e4f76683d64b230700060c1051cca25c
parentac2333ee63b3c0af8a075d325e2313c9b255a46e

add phi constant


1 files changed, 3 insertions(+), 0 deletions(-)

lib/std/math.zig+3
......@@ -9,6 +9,9 @@ pub const e = 2.71828182845904523536028747135266249775724709369995;
99/// Archimedes' constant (π)
1010pub const pi = 3.14159265358979323846264338327950288419716939937510;
1111
12/// Phi or Golden ratio constant (Φ) = (1 + sqrt(5))/2
13pub const phi = 1.6180339887498948482045868343656381177203091798057628621;
14
1215/// Circle constant (τ)
1316pub const tau = 2 * pi;
1417