cds2.scientific
Physical constants and classical/modern physics formula helpers.
Physical constants and formulas — CDS-native, not a wrapper (CODATA).
speed_of_light()
Speed of light in vacuum, m/s.
Source code in src/cds2/scientific.py
46 47 48 | |
planck_constant()
Planck constant, J*s.
Source code in src/cds2/scientific.py
51 52 53 | |
boltzmann_constant()
Boltzmann constant, J/K.
Source code in src/cds2/scientific.py
56 57 58 | |
gravitational_constant()
Newtonian constant of gravitation.
Source code in src/cds2/scientific.py
61 62 63 | |
elementary_charge()
Elementary charge, C.
Source code in src/cds2/scientific.py
66 67 68 | |
avogadro_number()
Avogadro constant, 1/mol.
Source code in src/cds2/scientific.py
71 72 73 | |
vacuum_permittivity()
Vacuum electric permittivity, F/m.
Source code in src/cds2/scientific.py
76 77 78 | |
vacuum_permeability()
Vacuum magnetic permeability, H/m.
Source code in src/cds2/scientific.py
81 82 83 | |
standard_gravity()
Standard Earth gravity, m/s^2.
Source code in src/cds2/scientific.py
86 87 88 | |
kinetic_energy(mass, velocity)
Classical kinetic energy, J.
Source code in src/cds2/scientific.py
91 92 93 94 95 96 | |
gravitational_force(mass_a, mass_b, distance)
Newtonian gravitational attraction between two point masses, N.
Source code in src/cds2/scientific.py
99 100 101 102 103 104 | |
coulomb_force(charge_a, charge_b, distance)
Electrostatic force between two point charges, N (signed).
Source code in src/cds2/scientific.py
107 108 109 110 111 112 | |
photon_energy(wavelength_m)
Energy of a photon from its vacuum wavelength, J.
Source code in src/cds2/scientific.py
115 116 117 118 119 120 | |
de_broglie_wavelength(mass, velocity)
Matter wavelength of a moving particle, m.
Source code in src/cds2/scientific.py
123 124 125 126 127 128 | |
lorentz_factor(velocity)
Special-relativistic gamma for a speed in m/s.
Source code in src/cds2/scientific.py
131 132 133 134 135 136 137 | |
ideal_gas_pressure(moles, temperature_k, volume_m3)
Ideal gas law pressure, Pa (moles in mol, converted via Avogadro).
Source code in src/cds2/scientific.py
140 141 142 143 144 145 146 147 148 149 | |
escape_velocity(mass_kg, radius_m)
Escape velocity from a spherical body, m/s.
Source code in src/cds2/scientific.py
152 153 154 155 156 157 | |
list_units()
All supported unit symbols, including the three temperatures.
Source code in src/cds2/scientific.py
217 218 219 | |
convert_units(value, from_unit, to_unit)
Convert value between supported units of one physical dimension.
Covers length, mass, time, energy, pressure and angle via UNIT_FACTORS
plus temperatures in C/F/K. Mixing dimensions raises ValueError.
Source code in src/cds2/scientific.py
238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 | |