This repository has been archived by the owner on Oct 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from CMATHL/development
Development
- Loading branch information
Showing
45 changed files
with
2,194 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: 1.0.{build} | ||
skip_tags: true | ||
image: Visual Studio 2017 | ||
platform: x64 | ||
configuration: Release | ||
clone_folder: c:\projects\cml | ||
build_script: | ||
- if exist "build" ( rmdir build /s /q ) | ||
- mkdir build | ||
- cd build | ||
- cmake -DCMAKE_BUILD_TYPE=%configuration% -G "Visual Studio 15 2017 Win64" .. || exit /b 1 | ||
test_script: | ||
- ctest --output-on-failure --build-config %configuration% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#ifndef CML_H | ||
#error "Never use <cml/const.h> directly; include <cml.h> instead." | ||
#endif | ||
|
||
#ifndef CML_CONST_H | ||
#define CML_CONST_H | ||
|
||
#include "const/num.h" | ||
|
||
#include "const/cgs.h" | ||
#include "const/mks.h" | ||
|
||
#include "const/cgsm.h" | ||
#include "const/mksa.h" | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
#ifndef __CML_CONST_CGS_H | ||
#define __CML_CONST_CGS_H | ||
|
||
#define CML_CONST_CGS_SPEED_OF_LIGHT (2.99792458e10) /* cm / s */ | ||
#define CML_CONST_CGS_GRAVITATIONAL_CONSTANT (6.673e-8) /* cm^3 / g s^2 */ | ||
#define CML_CONST_CGS_PLANCKS_CONSTANT_H (6.62606896e-27) /* g cm^2 / s */ | ||
#define CML_CONST_CGS_PLANCKS_CONSTANT_HBAR (1.05457162825e-27) /* g cm^2 / s */ | ||
#define CML_CONST_CGS_ASTRONOMICAL_UNIT (1.49597870691e13) /* cm */ | ||
#define CML_CONST_CGS_LIGHT_YEAR (9.46053620707e17) /* cm */ | ||
#define CML_CONST_CGS_PARSEC (3.08567758135e18) /* cm */ | ||
#define CML_CONST_CGS_GRAV_ACCEL (9.80665e2) /* cm / s^2 */ | ||
#define CML_CONST_CGS_ELECTRON_VOLT (1.602176487e-12) /* g cm^2 / s^2 */ | ||
#define CML_CONST_CGS_MASS_ELECTRON (9.10938188e-28) /* g */ | ||
#define CML_CONST_CGS_MASS_MUON (1.88353109e-25) /* g */ | ||
#define CML_CONST_CGS_MASS_PROTON (1.67262158e-24) /* g */ | ||
#define CML_CONST_CGS_MASS_NEUTRON (1.67492716e-24) /* g */ | ||
#define CML_CONST_CGS_RYDBERG (2.17987196968e-11) /* g cm^2 / s^2 */ | ||
#define CML_CONST_CGS_BOLTZMANN (1.3806504e-16) /* g cm^2 / K s^2 */ | ||
#define CML_CONST_CGS_MOLAR_GAS (8.314472e7) /* g cm^2 / K mol s^2 */ | ||
#define CML_CONST_CGS_STANDARD_GAS_VOLUME (2.2710981e4) /* cm^3 / mol */ | ||
#define CML_CONST_CGS_MINUTE (6e1) /* s */ | ||
#define CML_CONST_CGS_HOUR (3.6e3) /* s */ | ||
#define CML_CONST_CGS_DAY (8.64e4) /* s */ | ||
#define CML_CONST_CGS_WEEK (6.048e5) /* s */ | ||
#define CML_CONST_CGS_INCH (2.54e0) /* cm */ | ||
#define CML_CONST_CGS_FOOT (3.048e1) /* cm */ | ||
#define CML_CONST_CGS_YARD (9.144e1) /* cm */ | ||
#define CML_CONST_CGS_MILE (1.609344e5) /* cm */ | ||
#define CML_CONST_CGS_NAUTICAL_MILE (1.852e5) /* cm */ | ||
#define CML_CONST_CGS_FATHOM (1.8288e2) /* cm */ | ||
#define CML_CONST_CGS_MIL (2.54e-3) /* cm */ | ||
#define CML_CONST_CGS_POINT (3.52777777778e-2) /* cm */ | ||
#define CML_CONST_CGS_TEXPOINT (3.51459803515e-2) /* cm */ | ||
#define CML_CONST_CGS_MICRON (1e-4) /* cm */ | ||
#define CML_CONST_CGS_ANGSTROM (1e-8) /* cm */ | ||
#define CML_CONST_CGS_HECTARE (1e8) /* cm^2 */ | ||
#define CML_CONST_CGS_ACRE (4.04685642241e7) /* cm^2 */ | ||
#define CML_CONST_CGS_BARN (1e-24) /* cm^2 */ | ||
#define CML_CONST_CGS_LITER (1e3) /* cm^3 */ | ||
#define CML_CONST_CGS_US_GALLON (3.78541178402e3) /* cm^3 */ | ||
#define CML_CONST_CGS_QUART (9.46352946004e2) /* cm^3 */ | ||
#define CML_CONST_CGS_PINT (4.73176473002e2) /* cm^3 */ | ||
#define CML_CONST_CGS_CUP (2.36588236501e2) /* cm^3 */ | ||
#define CML_CONST_CGS_FLUID_OUNCE (2.95735295626e1) /* cm^3 */ | ||
#define CML_CONST_CGS_TABLESPOON (1.47867647813e1) /* cm^3 */ | ||
#define CML_CONST_CGS_TEASPOON (4.92892159375e0) /* cm^3 */ | ||
#define CML_CONST_CGS_CANADIAN_GALLON (4.54609e3) /* cm^3 */ | ||
#define CML_CONST_CGS_UK_GALLON (4.546092e3) /* cm^3 */ | ||
#define CML_CONST_CGS_MILES_PER_HOUR (4.4704e1) /* cm / s */ | ||
#define CML_CONST_CGS_KILOMETERS_PER_HOUR (2.77777777778e1) /* cm / s */ | ||
#define CML_CONST_CGS_KNOT (5.14444444444e1) /* cm / s */ | ||
#define CML_CONST_CGS_POUND_MASS (4.5359237e2) /* g */ | ||
#define CML_CONST_CGS_OUNCE_MASS (2.8349523125e1) /* g */ | ||
#define CML_CONST_CGS_TON (9.0718474e5) /* g */ | ||
#define CML_CONST_CGS_METRIC_TON (1e6) /* g */ | ||
#define CML_CONST_CGS_UK_TON (1.0160469088e6) /* g */ | ||
#define CML_CONST_CGS_TROY_OUNCE (3.1103475e1) /* g */ | ||
#define CML_CONST_CGS_CARAT (2e-1) /* g */ | ||
#define CML_CONST_CGS_UNIFIED_ATOMIC_MASS (1.660538782e-24) /* g */ | ||
#define CML_CONST_CGS_GRAM_FORCE (9.80665e2) /* cm g / s^2 */ | ||
#define CML_CONST_CGS_POUND_FORCE (4.44822161526e5) /* cm g / s^2 */ | ||
#define CML_CONST_CGS_KILOPOUND_FORCE (4.44822161526e8) /* cm g / s^2 */ | ||
#define CML_CONST_CGS_POUNDAL (1.38255e4) /* cm g / s^2 */ | ||
#define CML_CONST_CGS_CALORIE (4.1868e7) /* g cm^2 / s^2 */ | ||
#define CML_CONST_CGS_BTU (1.05505585262e10) /* g cm^2 / s^2 */ | ||
#define CML_CONST_CGS_THERM (1.05506e15) /* g cm^2 / s^2 */ | ||
#define CML_CONST_CGS_HORSEPOWER (7.457e9) /* g cm^2 / s^3 */ | ||
#define CML_CONST_CGS_BAR (1e6) /* g / cm s^2 */ | ||
#define CML_CONST_CGS_STD_ATMOSPHERE (1.01325e6) /* g / cm s^2 */ | ||
#define CML_CONST_CGS_TORR (1.33322368421e3) /* g / cm s^2 */ | ||
#define CML_CONST_CGS_METER_OF_MERCURY (1.33322368421e6) /* g / cm s^2 */ | ||
#define CML_CONST_CGS_INCH_OF_MERCURY (3.38638815789e4) /* g / cm s^2 */ | ||
#define CML_CONST_CGS_INCH_OF_WATER (2.490889e3) /* g / cm s^2 */ | ||
#define CML_CONST_CGS_PSI (6.89475729317e4) /* g / cm s^2 */ | ||
#define CML_CONST_CGS_POISE (1e0) /* g / cm s */ | ||
#define CML_CONST_CGS_STOKES (1e0) /* cm^2 / s */ | ||
#define CML_CONST_CGS_STILB (1e0) /* cd / cm^2 */ | ||
#define CML_CONST_CGS_LUMEN (1e0) /* cd sr */ | ||
#define CML_CONST_CGS_LUX (1e-4) /* cd sr / cm^2 */ | ||
#define CML_CONST_CGS_PHOT (1e0) /* cd sr / cm^2 */ | ||
#define CML_CONST_CGS_FOOTCANDLE (1.076e-3) /* cd sr / cm^2 */ | ||
#define CML_CONST_CGS_LAMBERT (1e0) /* cd sr / cm^2 */ | ||
#define CML_CONST_CGS_FOOTLAMBERT (1.07639104e-3) /* cd sr / cm^2 */ | ||
#define CML_CONST_CGS_CURIE (3.7e10) /* 1 / s */ | ||
#define CML_CONST_CGS_ROENTGEN (2.58e-7) /* A s / g */ | ||
#define CML_CONST_CGS_RAD (1e2) /* cm^2 / s^2 */ | ||
#define CML_CONST_CGS_SOLAR_MASS (1.98892e33) /* g */ | ||
#define CML_CONST_CGS_BOHR_RADIUS (5.291772083e-9) /* cm */ | ||
#define CML_CONST_CGS_NEWTON (1e5) /* cm g / s^2 */ | ||
#define CML_CONST_CGS_DYNE (1e0) /* cm g / s^2 */ | ||
#define CML_CONST_CGS_JOULE (1e7) /* g cm^2 / s^2 */ | ||
#define CML_CONST_CGS_ERG (1e0) /* g cm^2 / s^2 */ | ||
#define CML_CONST_CGS_STEFAN_BOLTZMANN_CONSTANT (5.67040047374e-5) /* g / K^4 s^3 */ | ||
#define CML_CONST_CGS_THOMSON_CROSS_SECTION (6.65245893699e-25) /* cm^2 */ | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
#ifndef CML_CONST_CGSM_H | ||
#define CML_CONST_CGSM_H | ||
|
||
#define CML_CONST_CGSM_SPEED_OF_LIGHT (2.99792458e10) /* cm / s */ | ||
#define CML_CONST_CGSM_GRAVITATIONAL_CONSTANT (6.673e-8) /* cm^3 / g s^2 */ | ||
#define CML_CONST_CGSM_PLANCKS_CONSTANT_H (6.62606896e-27) /* g cm^2 / s */ | ||
#define CML_CONST_CGSM_PLANCKS_CONSTANT_HBAR (1.05457162825e-27) /* g cm^2 / s */ | ||
#define CML_CONST_CGSM_ASTRONOMICAL_UNIT (1.49597870691e13) /* cm */ | ||
#define CML_CONST_CGSM_LIGHT_YEAR (9.46053620707e17) /* cm */ | ||
#define CML_CONST_CGSM_PARSEC (3.08567758135e18) /* cm */ | ||
#define CML_CONST_CGSM_GRAV_ACCEL (9.80665e2) /* cm / s^2 */ | ||
#define CML_CONST_CGSM_ELECTRON_VOLT (1.602176487e-12) /* g cm^2 / s^2 */ | ||
#define CML_CONST_CGSM_MASS_ELECTRON (9.10938188e-28) /* g */ | ||
#define CML_CONST_CGSM_MASS_MUON (1.88353109e-25) /* g */ | ||
#define CML_CONST_CGSM_MASS_PROTON (1.67262158e-24) /* g */ | ||
#define CML_CONST_CGSM_MASS_NEUTRON (1.67492716e-24) /* g */ | ||
#define CML_CONST_CGSM_RYDBERG (2.17987196968e-11) /* g cm^2 / s^2 */ | ||
#define CML_CONST_CGSM_BOLTZMANN (1.3806504e-16) /* g cm^2 / K s^2 */ | ||
#define CML_CONST_CGSM_MOLAR_GAS (8.314472e7) /* g cm^2 / K mol s^2 */ | ||
#define CML_CONST_CGSM_STANDARD_GAS_VOLUME (2.2710981e4) /* cm^3 / mol */ | ||
#define CML_CONST_CGSM_MINUTE (6e1) /* s */ | ||
#define CML_CONST_CGSM_HOUR (3.6e3) /* s */ | ||
#define CML_CONST_CGSM_DAY (8.64e4) /* s */ | ||
#define CML_CONST_CGSM_WEEK (6.048e5) /* s */ | ||
#define CML_CONST_CGSM_INCH (2.54e0) /* cm */ | ||
#define CML_CONST_CGSM_FOOT (3.048e1) /* cm */ | ||
#define CML_CONST_CGSM_YARD (9.144e1) /* cm */ | ||
#define CML_CONST_CGSM_MILE (1.609344e5) /* cm */ | ||
#define CML_CONST_CGSM_NAUTICAL_MILE (1.852e5) /* cm */ | ||
#define CML_CONST_CGSM_FATHOM (1.8288e2) /* cm */ | ||
#define CML_CONST_CGSM_MIL (2.54e-3) /* cm */ | ||
#define CML_CONST_CGSM_POINT (3.52777777778e-2) /* cm */ | ||
#define CML_CONST_CGSM_TEXPOINT (3.51459803515e-2) /* cm */ | ||
#define CML_CONST_CGSM_MICRON (1e-4) /* cm */ | ||
#define CML_CONST_CGSM_ANGSTROM (1e-8) /* cm */ | ||
#define CML_CONST_CGSM_HECTARE (1e8) /* cm^2 */ | ||
#define CML_CONST_CGSM_ACRE (4.04685642241e7) /* cm^2 */ | ||
#define CML_CONST_CGSM_BARN (1e-24) /* cm^2 */ | ||
#define CML_CONST_CGSM_LITER (1e3) /* cm^3 */ | ||
#define CML_CONST_CGSM_US_GALLON (3.78541178402e3) /* cm^3 */ | ||
#define CML_CONST_CGSM_QUART (9.46352946004e2) /* cm^3 */ | ||
#define CML_CONST_CGSM_PINT (4.73176473002e2) /* cm^3 */ | ||
#define CML_CONST_CGSM_CUP (2.36588236501e2) /* cm^3 */ | ||
#define CML_CONST_CGSM_FLUID_OUNCE (2.95735295626e1) /* cm^3 */ | ||
#define CML_CONST_CGSM_TABLESPOON (1.47867647813e1) /* cm^3 */ | ||
#define CML_CONST_CGSM_TEASPOON (4.92892159375e0) /* cm^3 */ | ||
#define CML_CONST_CGSM_CANADIAN_GALLON (4.54609e3) /* cm^3 */ | ||
#define CML_CONST_CGSM_UK_GALLON (4.546092e3) /* cm^3 */ | ||
#define CML_CONST_CGSM_MILES_PER_HOUR (4.4704e1) /* cm / s */ | ||
#define CML_CONST_CGSM_KILOMETERS_PER_HOUR (2.77777777778e1) /* cm / s */ | ||
#define CML_CONST_CGSM_KNOT (5.14444444444e1) /* cm / s */ | ||
#define CML_CONST_CGSM_POUND_MASS (4.5359237e2) /* g */ | ||
#define CML_CONST_CGSM_OUNCE_MASS (2.8349523125e1) /* g */ | ||
#define CML_CONST_CGSM_TON (9.0718474e5) /* g */ | ||
#define CML_CONST_CGSM_METRIC_TON (1e6) /* g */ | ||
#define CML_CONST_CGSM_UK_TON (1.0160469088e6) /* g */ | ||
#define CML_CONST_CGSM_TROY_OUNCE (3.1103475e1) /* g */ | ||
#define CML_CONST_CGSM_CARAT (2e-1) /* g */ | ||
#define CML_CONST_CGSM_UNIFIED_ATOMIC_MASS (1.660538782e-24) /* g */ | ||
#define CML_CONST_CGSM_GRAM_FORCE (9.80665e2) /* cm g / s^2 */ | ||
#define CML_CONST_CGSM_POUND_FORCE (4.44822161526e5) /* cm g / s^2 */ | ||
#define CML_CONST_CGSM_KILOPOUND_FORCE (4.44822161526e8) /* cm g / s^2 */ | ||
#define CML_CONST_CGSM_POUNDAL (1.38255e4) /* cm g / s^2 */ | ||
#define CML_CONST_CGSM_CALORIE (4.1868e7) /* g cm^2 / s^2 */ | ||
#define CML_CONST_CGSM_BTU (1.05505585262e10) /* g cm^2 / s^2 */ | ||
#define CML_CONST_CGSM_THERM (1.05506e15) /* g cm^2 / s^2 */ | ||
#define CML_CONST_CGSM_HORSEPOWER (7.457e9) /* g cm^2 / s^3 */ | ||
#define CML_CONST_CGSM_BAR (1e6) /* g / cm s^2 */ | ||
#define CML_CONST_CGSM_STD_ATMOSPHERE (1.01325e6) /* g / cm s^2 */ | ||
#define CML_CONST_CGSM_TORR (1.33322368421e3) /* g / cm s^2 */ | ||
#define CML_CONST_CGSM_METER_OF_MERCURY (1.33322368421e6) /* g / cm s^2 */ | ||
#define CML_CONST_CGSM_INCH_OF_MERCURY (3.38638815789e4) /* g / cm s^2 */ | ||
#define CML_CONST_CGSM_INCH_OF_WATER (2.490889e3) /* g / cm s^2 */ | ||
#define CML_CONST_CGSM_PSI (6.89475729317e4) /* g / cm s^2 */ | ||
#define CML_CONST_CGSM_POISE (1e0) /* g / cm s */ | ||
#define CML_CONST_CGSM_STOKES (1e0) /* cm^2 / s */ | ||
#define CML_CONST_CGSM_STILB (1e0) /* cd / cm^2 */ | ||
#define CML_CONST_CGSM_LUMEN (1e0) /* cd sr */ | ||
#define CML_CONST_CGSM_LUX (1e-4) /* cd sr / cm^2 */ | ||
#define CML_CONST_CGSM_PHOT (1e0) /* cd sr / cm^2 */ | ||
#define CML_CONST_CGSM_FOOTCANDLE (1.076e-3) /* cd sr / cm^2 */ | ||
#define CML_CONST_CGSM_LAMBERT (1e0) /* cd sr / cm^2 */ | ||
#define CML_CONST_CGSM_FOOTLAMBERT (1.07639104e-3) /* cd sr / cm^2 */ | ||
#define CML_CONST_CGSM_CURIE (3.7e10) /* 1 / s */ | ||
#define CML_CONST_CGSM_ROENTGEN (2.58e-8) /* abamp s / g */ | ||
#define CML_CONST_CGSM_RAD (1e2) /* cm^2 / s^2 */ | ||
#define CML_CONST_CGSM_SOLAR_MASS (1.98892e33) /* g */ | ||
#define CML_CONST_CGSM_BOHR_RADIUS (5.291772083e-9) /* cm */ | ||
#define CML_CONST_CGSM_NEWTON (1e5) /* cm g / s^2 */ | ||
#define CML_CONST_CGSM_DYNE (1e0) /* cm g / s^2 */ | ||
#define CML_CONST_CGSM_JOULE (1e7) /* g cm^2 / s^2 */ | ||
#define CML_CONST_CGSM_ERG (1e0) /* g cm^2 / s^2 */ | ||
#define CML_CONST_CGSM_STEFAN_BOLTZMANN_CONSTANT (5.67040047374e-5) /* g / K^4 s^3 */ | ||
#define CML_CONST_CGSM_THOMSON_CROSS_SECTION (6.65245893699e-25) /* cm^2 */ | ||
#define CML_CONST_CGSM_BOHR_MAGNETON (9.27400899e-21) /* abamp cm^2 */ | ||
#define CML_CONST_CGSM_NUCLEAR_MAGNETON (5.05078317e-24) /* abamp cm^2 */ | ||
#define CML_CONST_CGSM_ELECTRON_MAGNETIC_MOMENT (9.28476362e-21) /* abamp cm^2 */ | ||
#define CML_CONST_CGSM_PROTON_MAGNETIC_MOMENT (1.410606633e-23) /* abamp cm^2 */ | ||
#define CML_CONST_CGSM_FARADAY (9.64853429775e3) /* abamp s / mol */ | ||
#define CML_CONST_CGSM_ELECTRON_CHARGE (1.602176487e-20) /* abamp s */ | ||
|
||
#endif |
Oops, something went wrong.