add phi constant

This commit is contained in:
alichraghi 2021-10-04 21:50:08 +03:30 committed by Andrew Kelley
parent ac2333ee63
commit 5125788e33

View File

@ -9,6 +9,9 @@ pub const e = 2.71828182845904523536028747135266249775724709369995;
/// Archimedes' constant (π)
pub const pi = 3.14159265358979323846264338327950288419716939937510;
/// Phi or Golden ratio constant (Φ) = (1 + sqrt(5))/2
pub const phi = 1.6180339887498948482045868343656381177203091798057628621;
/// Circle constant (τ)
pub const tau = 2 * pi;