Variables and Constants

🖊️Define and use variables

Defining and using variables in Calcumber is straightforward and flexible — just assign and use:

banana = 0.70;

chocolate = 2.40;

5 * banana + 2 * chocolate8.3

Although Calcumber understands the cost of bananas and chocolate, it doesn’t know yet about the extra joy of eating them together🍌🍫.

🧪 Physical Constants

NameDescriptionValue
_Q_eelementary charge1.602176634e-19 C
_GNewtonian constant of gravitation6.67430e-11 m^3/kg*s^2
_cspeed of light in vacuum299792458 m/s
_eps0vacuum electric permittivity8.8541878128e-12 F/m
_mu0vacuum magnetic permeability1.25663706212e-6 N/A^2
_m_eelectron mass9.1093837015e-31 kg
_m_pproton mass1.67262192369e-27 kg
_m_nneutron mass1.67492749804e-27 kg
_kBoltzmann constant1.380649e-23 J/K
_hPlanck constant6.62607015e-34 J*s
_hbarreduced Planck constant (ħ)1.054571817e-34 J*s
_NAAvogadro constant6.02214076e23 1/mol
_Rideal gas constant8.314462618 J/mol*K
_sigmaStefan-Boltzmann constant5.670374419e-8 W/m^2*K^4
_alphafine-structure constant (dimensionless)7.2973525693e-3
_g0standard gravity9.80665 m/s^2
_RyRydberg constant (energy form)2.1798723611035e-18 J
_b_wienWien’s displacement constant2.897771955e-3 m*K

🧮 Mathematical Constants

NameDescriptionValue
picircle constant3.14159265358979323846
_eEuler’s number2.71828182845904523536
_phigolden ratio1.61803398874989484820
_gammaEuler–Mascheroni constant0.5772156649015329
_zeta3Apéry’s constant (ζ(3))1.202056903159594
Scroll to Top