RicardoSantos

MathConstantsUniversal

Library "MathConstantsUniversal"
Mathematical Constants

SpeedOfLight() Speed of Light in Vacuum: c_0 = 2.99792458e8 (defined, exact; 2007 CODATA)

MagneticPermeability() Magnetic Permeability in Vacuum: mu_0 = 4*Pi * 10^-7 (defined, exact; 2007 CODATA)

ElectricPermittivity() Electric Permittivity in Vacuum: epsilon_0 = 1/(mu_0*c_0^2) (defined, exact; 2007 CODATA)

CharacteristicImpedanceVacuum() Characteristic Impedance of Vacuum: Z_0 = mu_0*c_0 (defined, exact; 2007 CODATA)

GravitationalConstant() Newtonian Constant of Gravitation: G = 6.67429e-11 (2007 CODATA)

PlancksConstant() Planck's constant: h = 6.62606896e-34 (2007 CODATA)

DiracsConstant() Reduced Planck's constant: h_bar = h / (2*Pi) (2007 CODATA)

PlancksMass() Planck mass: m_p = (h_bar*c_0/G)^(1/2) (2007 CODATA)

PlancksTemperature() Planck temperature: T_p = (h_bar*c_0^5/G)^(1/2)/k (2007 CODATA)

PlancksLength() Planck length: l_p = h_bar/(m_p*c_0) (2007 CODATA)

PlancksTime() Planck time: t_p = l_p/c_0 (2007 CODATA)
Pine library

In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in a publication is governed by House Rules.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this library?

Copy the following line and paste it in your script.