Zephyr Scientific Library (zscilib)
Files | Macros
Constants

Constant values used by or with zscilib. More...

Files

file  consts.h
 Constant values for zscilib.
 

Macros

#define ZSL_PERM_FREE_SPACE   (8.85E-12)
 
#define ZSL_UNIV_GRAV   (6.67408E-11)
 
#define ZSL_PI   (3.14159265359)
 
#define ZSL_GRAV_EARTH   (9.807)
 
#define ZSL_NUCL_RADIUS   (1.25E-15)
 
#define ZSL_E   (2.71828182845)
 
#define ZSL_PLANCK   (6.62607015E-34)
 
#define ZSL_RED_PLANCK   (1.054571800E-34)
 
#define ZSL_E_CHARGE   (1.602176634E-19)
 
#define ZSL_COULOMB   (8.987551787E9)
 
#define ZSL_E_MASS   (9.1093835611E-31)
 
#define ZSL_LIGHT_SPEED   (299792458.0)
 
#define ZSL_IDEAL_GAS_CONST   (8.314462618)
 
#define ZSL_DEG_TO_RAD   (0.01745329252)
 
#define ZSL_RAD_TO_DEG   (57.295779513)
 

Detailed Description

Constant values used by or with zscilib.

Macro Definition Documentation

◆ ZSL_COULOMB

#define ZSL_COULOMB   (8.987551787E9)

Coulomb's constant or the electrostatic constant, in newtons and meters squared per coulombs squared.

Definition at line 85 of file consts.h.

◆ ZSL_DEG_TO_RAD

#define ZSL_DEG_TO_RAD   (0.01745329252)

Degrees to radians conversion.

Definition at line 105 of file consts.h.

◆ ZSL_E

#define ZSL_E   (2.71828182845)

The irrational number 'e', also known as the Euler's constant.

Definition at line 62 of file consts.h.

◆ ZSL_E_CHARGE

#define ZSL_E_CHARGE   (1.602176634E-19)

The elementary change, AKA the electric charge of a proton and minus the electric charge of an electron, in coulombs.

Definition at line 79 of file consts.h.

◆ ZSL_E_MASS

#define ZSL_E_MASS   (9.1093835611E-31)

The mass of a single electron, in kilograms.

Definition at line 90 of file consts.h.

◆ ZSL_GRAV_EARTH

#define ZSL_GRAV_EARTH   (9.807)

The gravitational acceleration at the surface of the Earth, in meters per second squared.

Definition at line 51 of file consts.h.

◆ ZSL_IDEAL_GAS_CONST

#define ZSL_IDEAL_GAS_CONST   (8.314462618)

The ideal gas constant, in joules per kelvin and mol.

Definition at line 100 of file consts.h.

◆ ZSL_LIGHT_SPEED

#define ZSL_LIGHT_SPEED   (299792458.0)

The speed of light in vacuum, in meters per second.

Definition at line 95 of file consts.h.

◆ ZSL_NUCL_RADIUS

#define ZSL_NUCL_RADIUS   (1.25E-15)

The radius of a nucleon, in meters. This is an empirically determined constant and it's value is approximately between 1.2 and 1.5 femtometers.

Definition at line 57 of file consts.h.

◆ ZSL_PERM_FREE_SPACE

#define ZSL_PERM_FREE_SPACE   (8.85E-12)

The permitivity of free space (a vacuum), AKA vacuum permitivity or electric constant, in farads per meter.

Definition at line 33 of file consts.h.

◆ ZSL_PI

#define ZSL_PI   (3.14159265359)

The irrational number Pi, defined as the ratio between the perimeter and the diameter of a circle.

Definition at line 45 of file consts.h.

◆ ZSL_PLANCK

#define ZSL_PLANCK   (6.62607015E-34)

Planck's constant, in kilograms and meters squared per second.

Definition at line 67 of file consts.h.

◆ ZSL_RAD_TO_DEG

#define ZSL_RAD_TO_DEG   (57.295779513)

Radians to degrees conversion.

Definition at line 110 of file consts.h.

◆ ZSL_RED_PLANCK

#define ZSL_RED_PLANCK   (1.054571800E-34)

Reduced Planck's constant or Dirac's constant, in kilograms and meters squared per second. Defined as the Planck's constant divided by 2 pi.

Definition at line 73 of file consts.h.

◆ ZSL_UNIV_GRAV

#define ZSL_UNIV_GRAV   (6.67408E-11)

The universal gravitational constant or Newtonian constant of gravitation, in meters cubed per kilogram and second squared.

Definition at line 39 of file consts.h.