const.const¶
const : Provides physical, mathematical, computational, isotope, and material constants.
- Defines the following constants:
- Mathematical
Pi, Pi2, Pi3, TwoPi, Sqrt2, pi, pi2, pi3, Twopi
- Physical
Gravity, T0, P0, T25, sigma, R, R_air, R_H2O, Na, REarth
- Isotope
R13VPDB, R18VSMOW, R2VSMOW
- Computational
tiny, huge, eps
- Material
mmol_co2, mmol_h2o, mmol_air, density_quartz, cheat_quartz, cheat_water, cheat_air, latentheat_vaporization
This module was written by Matthias Cuntz while at Department of Computational Hydrosystems, Helmholtz Centre for Environmental Research - UFZ, Leipzig, Germany, and continued while at Institut National de Recherche pour l’Agriculture, l’Alimentation et l’Environnement (INRAE), Nancy, France.
Examples
>>> print('{:.3f}'.format(Pi))
3.142
>>> print('{:.3f}'.format(Sqrt2))
1.414
>>> print('{:.3f}'.format(Gravity))
9.810
>>> print('{:.3f}'.format(T0))
273.150
>>> print('{:.3e}'.format(sigma))
5.670e-08
>>> print('{:.3f}'.format(R13VPDB))
0.011
>>> print('{:.3e}'.format(tiny))
2.225e-308
>>> print('{:.3f}'.format(REarth))
6371009.000
>>> print('{:.3f}'.format(mmol_h2o))
18.015
>>> print('{:.3f}'.format(mmol_air))
28.964
>>> print('{:.3f}'.format(density_quartz))
2.650
>>> print('{:.3f}'.format(cheat_quartz))
800.000
>>> print('{:.3f}'.format(cheat_water))
4180.000
>>> print('{:.3f}'.format(cheat_air))
1010.000
>>> print('{:.3f}'.format(latentheat_vaporization))
2450000.000
Copyright (c) 2012-2020 Matthias Cuntz - mc (at) macu (dot) de Released under the MIT License; see LICENSE file for details.
Written Jan 2012 by Matthias Cuntz (mc (at) macu (dot) de)
Ported to Python 3, Feb 2013, Matthias Cuntz
Added dielectric constant for water, Mar 2014, Arndt Piayda
Added heat capacities for air, water and quartz as well as density of quartz, Sep 2014, Arndt Piayda
Added Pi3=pi/3, R13VPDB, R18VSMOW, R2VSMOW, Mar 2015, Matthias Cuntz
Renamed heat capacities, molar masses, density of quartz, Mar 2015, Matthias Cuntz
Moved calculation of dielectric constant of water to own routine, Mar 2015, Matthias Cuntz
Added computational constants such as tiny=np.finfo(np.float).tiny, Nov 2016, Matthias Cuntz
Added gas constants for dry air and water, May 2017, RL
Using numpy docstring format, May 2020, Matthias Cuntz
Added lowercase version of pi constants, May 2020, Matthias Cuntz
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
Convert a string or number to a floating point number, if possible. |
|
|
|
|
|