Defined units

Defined in header <scicpp/core.hpp>


Here T is the representation type (double by default).

The statement using namespace scicpp::units::literals must be included in the scope where unit literals are used.

Base units


Length

SI units

Classes:attometer<T>, femtometer<T>, picometer<T>, nanometer<T>, micrometer<T>, millimeter<T>, centimeter<T>, decimeter<T>, meter<T>, decameter<T>, hectometer<T>, kilometer<T>, megameter<T>, gigameter<T>, terameter<T>, petameter<T>, exameter<T>.
Literals:_am, _fm, _pm, _nm, _um, _mm, _cm, _m, _km, _Mm, _Gm, _Tm, _Pm, _Em.

Non-SI units

Imperial

Classes:inch<T>, foot<T>, yard<T>, mile<T>.
Literals:_in, _ft, _yd, _mi.

Marine

Classes:nautical_mile<T>.
Literals:_nmi.

Astronomy

Classes:astronomical_unit<T>, light_year<T>, parsec<T>.
Literals:_au, _ly, _pc.

Miscellaneous

Classes:angstrom<T>.
Literals:_angstrom.

Time

SI units

Classes:attosecond<T>, femtosecond<T>, picosecond<T>, nanosecond<T>, microsecond<T>, millisecond<T>, centisecond<T>, decisecond<T>, second<T>, decasecond<T>, hectosecond<T>, kilosecond<T>, megasecond<T>, gigasecond<T>, terasecond<T>, petasecond<T>, exasecond<T>.
Literals:_as, _fs, _ps, _ns, _us, _ms, _s, _ks, _Ms, _Gs, _Ts, _Ps, _Es.

Non-SI units

Classes:minute<T>, hour<T>, day<T>, week<T>.
Literals:_min, _h, _day, _week.

Mass

SI units

Classes:femtogram<T>, picogram<T>, nanogram<T>, microgram<T>, milligram<T>, gram<T>, kilogram<T>.
Literals:_fg, _pg, _ng, _ug, _mg, _g, _kg.

Non-SI units

Classes:tonne<T>, kilotonne<T>, megatonne<T>, gigatonne<T>, teratonne<T>.
Literals:_t, _kt, _Mt, _Gt, _Tt.

Electric current

SI units

Classes:attoampere<T>, femtoampere<T>, picoampere<T>, nanoampere<T>, microampere<T>, milliampere<T>, centiampere<T>, deciampere<T>, ampere<T>, decaampere<T>, hectoampere<T>, kiloampere<T>, megaampere<T>, gigaampere<T>, teraampere<T>, petaampere<T>, exaampere<T>.
Literals:_aA, _fA, _pA, _nA, _uA, _mA, _A, _kA, _MA, _GA, _TA, _PA, _EA.

Temperature

SI units

Classes:attokelvin<T>, femtokelvin<T>, picokelvin<T>, nanokelvin<T>, microkelvin<T>, millikelvin<T>, centikelvin<T>, decikelvin<T>, kelvin<T>, decakelvin<T>, hectokelvin<T>, kilokelvin<T>, megakelvin<T>, gigakelvin<T>, terakelvin<T>, petakelvin<T>, exakelvin<T>.
Literals:_aK, _fK, _pK, _nK, _uK, _mK, _K, _kK, _MK, _GK, _TK, _PK, _EK.

Non-SI units

Classes:celsius<T>, fahrhenheit<T>.
Literals:_degC, _degF.

Amount of substance

SI units

Classes:attomole<T>, femtomole<T>, picomole<T>, nanomole<T>, micromole<T>, millimole<T>, centimole<T>, decimole<T>, mole<T>, decamole<T>, hectomole<T>, kilomole<T>, megamole<T>, gigamole<T>, teramole<T>, petamole<T>, examole<T>.
Literals:_amol, _fmol, _pmol, _nmol, _umol, _mmol, _mol, _kmol, _Mmol, _Gmol, _Tmol, _Pmol, _Emol.

Luminous intensity

SI units

Classes:attocandela<T>, femtocandela<T>, picocandela<T>, nanocandela<T>, microcandela<T>, millicandela<T>, centicandela<T>, decicandela<T>, candela<T>, decacandela<T>, hectocandela<T>, kilocandela<T>, megacandela<T>, gigacandela<T>, teracandela<T>, petacandela<T>, exacandela<T>.
Literals:_aCd, _fCd, _pCd, _nCd, _uCd, _mCd, _Cd, _kCd, _MCd, _GCd, _TCd, _PCd, _ECd.

Planar angle

SI units

Classes:attoradian<T>, femtoradian<T>, picoradian<T>, nanoradian<T>, microradian<T>, milliradian<T>, centiradian<T>, deciradian<T>, radian<T>, decaradian<T>, hectoradian<T>, kiloradian<T>, megaradian<T>, gigaradian<T>, teraradian<T>, petaradian<T>, exaradian<T>.
Literals:_arad, _frad, _prad, _nrad, _urad, _mrad, _rad, _krad, _Mrad, _Grad, _Trad, _Prad, _Erad.

Non-SI units

Classes:degree<T>, turn<T>.
Literals:_deg, _turn.

Solid angle

SI units

Classes:attosteradian<T>, femtosteradian<T>, picosteradian<T>, nanosteradian<T>, microsteradian<T>, millisteradian<T>, centisteradian<T>, decisteradian<T>, steradian<T>, decasteradian<T>, hectosteradian<T>, kilosteradian<T>, megasteradian<T>, gigasteradian<T>, terasteradian<T>, petasteradian<T>, exastearadian<T>.
Literals:_asr, _fsr, _psr, _nsr, _usr, _msr, _sr, _ksr, _Msr, _Gsr, _Tsr, _Psr, _Esr.

Data/Information quantity

SI units

Classes:shannon<T>, bit<T>, nibble<T>, byte<T>, kibibyte<T>, mebibyte<T>, gibibyte<T>, tebibyte<T>, pebibyte<T>.
Literals:_Sh, _b, _B, _kiB, _MiB, _GiB, _TiB, _PiB.

Derived units


Speed

SI units

Classes:attometer_per_second<T>, femtometer_per_second<T>, picometer_per_second<T>, nanometer_per_second<T>, micrometer_per_second<T>, millimeter_per_second<T>, centimeter_per_second<T>, decimeter_per_second<T>, meter_per_second<T>, decameter_per_second<T>, hectometer_per_second<T>, kilometer_per_second<T>, megameter_per_second<T>, gigameter_per_second<T>, terameter_per_second<T>, petameter_per_second<T>, exameter_per_second<T>.
Literals:_am_per_s, _fm_per_s, _pm_per_s, _nm_per_s, _um_per_s, _mm_per_s, _m_per_s, _km_per_s, _Mm_per_s, _Gm_per_s, _Tm_per_s, _Pm_per_s, _Em_per_s.

Non-SI units

Classes:kilometer_per_hour<T>, knot<T>, mile_per_hour<T>.
Literals:_km_per_h, _kn, _mph.

Acceleration

SI units

Classes:attometer_per_second_squared<T>, femtometer_per_second_squared<T>, picometer_per_second_squared<T>, nanometer_per_second_squared<T>, micrometer_per_second_squared<T>, millimeter_per_second_squared<T>, centimeter_per_second_squared<T>, decimeter_per_second_squared<T>, meter_per_second_squared<T>, decameter_per_second_squared<T>, hectometer_per_second_squared<T>, kilometer_per_second_squared<T>, megameter_per_second_squared<T>, gigameter_per_second_squared<T>, terameter_per_second_squared<T>, petameter_per_second_squared<T>, exameter_per_second_squared<T>.
Literals:_am_per_s2, _fm_per_s2, _pm_per_s2, _nm_per_s2, _um_per_s2, _mm_per_s2, _m_per_s2, _km_per_s2, _Mm_per_s2, _Gm_per_s2, _Tm_per_s2, _Pm_per_s2, _Em_per_s2.

Non-SI units

Classes:nanogalileo<T>, microgalileo<T>, milligalileo<T>, galileo<T>.
Literals:_nGal, _uGal, _mGal, _Gal.

Area

SI units

Classes:square_micrometer<T>, square_millimeter<T>, square_centimeter<T>, square_meter<T>, square_kilometer<T>, square_megameter<T>.
Literals:_um2, _mm2, _cm2, _m2, _km2, _Mm2.

Non-SI units

Imperial

Classes:square_inch<T>, square_foot<T>, square_yard<T>, square_mile<T>.
Literals:_in2, _ft2, _yd2, _mi2.

metric

Classes:are<T>, hectare<T>.
Literals:_a, _ha.

Volume

SI units

Classes:cubic_millimeter<T>, cubic_centimeter<T>, cubic_meter<T>, cubic_kilometer<T>.
Literals:_mm3, _cm3, _m3, _km3.

Non-SI units

Imperial

Classes:cubic_inch<T>, cubic_foot<T>, cubic_yard<T>, cubic_mile<T>.
Literals:_in3, _ft3, _yd3, _mi3.

metric

Classes:microliter<T>, milliliter<T>, liter<T>, hectoliter<T>.
Literals:_uL, _mL, _L, _hL.

Force

SI units

Classes:attonewton<T>, femtonewton<T>, piconewton<T>, nanonewton<T>, micronewton<T>, millinewton<T>, centinewton<T>, decinewton<T>, newton<T>, decanewton<T>, hectonewton<T>, kilonewton<T>, meganewton<T>, giganewton<T>, teranewton<T>, petanewton<T>, exanewton<T>.
Literals:_aN, _fN, _pN, _nN, _uN, _mN, _N, _kN, _MN, _GN, _TN, _PN, _EN.

Non-SI units

Classes:pound_force<T>, poundal<T>, kilogram_force<T>, dyne<T>.
Literals:_lbf, _pdl, _kgf, _dyn.

Power

SI units

Classes:attowatt<T>, femtowatt<T>, picowatt<T>, nanowatt<T>, microwatt<T>, milliwatt<T>, centiwatt<T>, deciwatt<T>, watt<T>, decawatt<T>, hectowatt<T>, kilowatt<T>, megawatt<T>, gigawatt<T>, terawatt<T>, petawatt<T>, exawatt<T>.
Literals:_aW, _fW, _pW, _nW, _uW, _mW, _W, _kW, _MW, _GW, _TW, _PW, _EW.

Energy, Work, Heat

SI units

Classes:attojoule<T>, femtojoule<T>, picojoule<T>, nanojoule<T>, microjoule<T>, millijoule<T>, centijoule<T>, decijoule<T>, joule<T>, decajoule<T>, hectojoule<T>, kilojoule<T>, megajoule<T>, gigajoule<T>, terajoule<T>, petajoule<T>, exajoule<T>.
Literals:_aJ, _fJ, _pJ, _nJ, _uJ, _mJ, _J, _kJ, _MJ, _GJ, _TJ, _PJ, _EJ.

Non-SI units

Classes:watt_hour<T>, kilowatt_hour<T>, megawatt_hour<T>, gigawatt_hour<T>, terawatt_hour<T>, petawatt_hour<T>, calorie<T>, kilocalorie<T>.
Literals:_Wh, _kWh, _MWh, _GWh, _TWh, PWh, _cal, _kcal.

Pressure

SI units

Classes:attopascal<T>, femtopascal<T>, picopascal<T>, nanopascal<T>, micropascal<T>, millipascal<T>, centipascal<T>, decipascal<T>, pascal<T>, decapascal<T>, hectopascal<T>, kilopascal<T>, megapascal<T>, gigapascal<T>, terapascal<T>, petapascal<T>, exapascal<T>.
Literals:_aPa, _fPa, _pPa, _nPa, _uPa, _mPa, _Pa, _hPa, _kPa, _MPa, _GPa, _TPa, _PPa, _EPa.

Non-SI units

Classes:millibar<T>, bar<T>, kilobar<T>, mmHg<T>, torr<T>, psi<T>, atm<T>.
Literals:_mbar, _bar, _kbar, _mmHg, _torr, _psi, _atm.

Frequency

SI units

Classes:attohertz<T>, femtohertz<T>, picohertz<T>, nanohertz<T>, microhertz<T>, millihertz<T>, centihertz<T>, decihertz<T>, hertz<T>, decahertz<T>, hectohertz<T>, kilohertz<T>, megahertz<T>, gigahertz<T>, terahertz<T>, petahertz<T>, exahertz<T>.
Literals:_aHz, _fHz, _pHz, _nHz, _uHz, _mHz, _Hz, _kHz, _MHz, _GHz, _THz, _PHz, _EHz.

Data rate

Classes:bit_per_second<T>, kilobit_per_second<T>, megabit_per_second<T>, gigabit_per_second<T>, terabit_per_second<T>, petabit_per_second<T>, exabit_per_second<T>.
Literals:_bps, _kbps, _Mbps, _Gbps, _Tbps, _Pbps, _Ebps.

Electric potential

SI units

Classes:attovolt<T>, femtovolt<T>, picovolt<T>, nanovolt<T>, microvolt<T>, millivolt<T>, centivolt<T>, decivolt<T>, volt<T>, decavolt<T>, hectovolt<T>, kilovolt<T>, megavolt<T>, gigavolt<T>, teravolt<T>, petavolt<T>, exavolt<T>.
Literals:_aV, _fV, _pV, _nV, _uV, _mV, _V, _kV, _MV, _GV, _TV, _PV, _EV.

Electric charge

SI units

Classes:attocoulomb<T>, femtocoulomb<T>, picocoulomb<T>, nanocoulomb<T>, microcoulomb<T>, millicoulomb<T>, centicoulomb<T>, decicoulomb<T>, coulomb<T>, decacoulomb<T>, hectocoulomb<T>, kilocoulomb<T>, megacoulomb<T>, gigacoulomb<T>, teracoulomb<T>, petacoulomb<T>, exacoulomb<T>.
Literals:_aC, _fC, _pC, _nC, _uC, _mC, _C, _kC, _MC, _GC, _TC, _PC, _EC.

Electrical resistance

SI units

Classes:attoohm<T>, femtoohm<T>, picoohm<T>, nanoohm<T>, microohm<T>, milliohm<T>, centiohm<T>, deciohm<T>, ohm<T>, decaohm<T>, hectoohm<T>, kiloohm<T>, megaohm<T>, gigaohm<T>, teraohm<T>, petaohm<T>, exaohm<T>.
Literals:_aOhm, _fOhm, _pOhm, _nOhm, _uOhm, _mOhm, _Ohm, _kOhm, _MOhm, _GOhm, _TOhm, _POhm, _EOhm.

Electrical conductivity

SI units

Classes:attosiemens<T>, femtosiemens<T>, picosiemens<T>, nanosiemens<T>, microsiemens<T>, millisiemens<T>, centisiemens<T>, decisiemens<T>, siemens<T>, decasiemens<T>, hectosiemens<T>, kilosiemens<T>, megasiemens<T>, gigasiemens<T>, terasiemens<T>, petasiemens<T>, exasiemens<T>.
Literals:_aS, _fS, _pS, _nS, _uS, _mS, _S, _kS, _MS, _GS, _TS, _PS, _ES.

Capacitance

SI units

Classes:attofarad<T>, femtofarad<T>, picofarad<T>, nanofarad<T>, microfarad<T>, millifarad<T>, centifarad<T>, decifarad<T>, farad<T>, decafarad<T>, hectofarad<T>, kilofarad<T>, megafarad<T>, gigafarad<T>, terafarad<T>, petafarad<T>, exafarad<T>.
Literals:_aF, _fF, _pF, _nF, _uF, _mF, _F, _kF, _MF, _GF, _TF, _PF, _EF.

Inductance

SI units

Classes:attohenry<T>, femtohenry<T>, picohenry<T>, nanohenry<T>, microhenry<T>, millihenry<T>, centihenry<T>, decihenry<T>, henry<T>, decahenry<T>, hectohenry<T>, kilohenry<T>, megahenry<T>, gigahenry<T>, terahenry<T>, petahenry<T>, exahenry<T>.
Literals:_aH, _fH, _pH, _nH, _uH, _mH, _H, _kH, _MH, _GH, _TH, _PH, _EH.

Magnetic flux density

SI units

Classes:attotesla<T>, femtotesla<T>, picotesla<T>, nanotesla<T>, microtesla<T>, millitesla<T>, centitesla<T>, decitesla<T>, tesla<T>, decatesla<T>, hectotesla<T>, kilotesla<T>, megatesla<T>, gigatesla<T>, teratesla<T>, petatesla<T>, exatesla<T>.
Literals:_aT, _fT, _pT, _nT, _uT, _mT, _T, _kT, _MT, _GT, _TT, _PT, _ET.

Non-SI units

Classes:gauss<T>.
Literals:_G.

Magnetic flux

SI units

Classes:attoweber<T>, femtoweber<T>, picoweber<T>, nanoweber<T>, microweber<T>, milliweber<T>, centiweber<T>, deciweber<T>, weber<T>, decaweber<T>, hectoweber<T>, kiloweber<T>, megaweber<T>, gigaweber<T>, teraweber<T>, petaweber<T>, exaweber<T>.
Literals:_aWb, _fWb, _pWb, _nWb, _uWb, _mWb, _Wb, _kWb, _MWb, _GWb, _TWb, _PWb, _EWb.

Current noise density

SI units

Classes:attoampere_per_root_hertz<T>, femtoampere_per_root_hertz<T>, picoampere_per_root_hertz<T>, nanoampere_per_root_hertz<T>, microampere_per_root_hertz<T>, milliampere_per_root_hertz<T>, centiampere_per_root_hertz<T>, deciampere_per_root_hertz<T>, ampere_per_root_hertz<T>, decaampere_per_root_hertz<T>, hectoampere_per_root_hertz<T>, kiloampere_per_root_hertz<T>, megaampere_per_root_hertz<T>, gigaampere_per_root_hertz<T>, teraampere_per_root_hertz<T>, petaampere_per_root_hertz<T>, exaampere_per_root_hertz<T>.
Literals:_aA_per_rtHz, _fA_per_rtHz, _pA_per_rtHz, _nA_per_rtHz, _uA_per_rtHz, _mA_per_rtHz, _A_per_rtHz, _kA_per_rtHz, _MA_per_rtHz, _GA_per_rtHz, _TA_per_rtHz, _PA_per_rtHz, _EA_per_rtHz.

Voltage noise density

SI units

Classes:attovolt_per_root_hertz<T>, femtovolt_per_root_hertz<T>, picovolt_per_root_hertz<T>, nanovolt_per_root_hertz<T>, microvolt_per_root_hertz<T>, millivolt_per_root_hertz<T>, centivolt_per_root_hertz<T>, decivolt_per_root_hertz<T>, volt_per_root_hertz<T>, decavolt_per_root_hertz<T>, hectovolt_per_root_hertz<T>, kilovolt_per_root_hertz<T>, megavolt_per_root_hertz<T>, gigavolt_per_root_hertz<T>, teravolt_per_root_hertz<T>, petavolt_per_root_hertz<T>, exavolt_per_root_hertz<T>.
Literals:_aV_per_rtHz, _fV_per_rtHz, _pV_per_rtHz, _nV_per_rtHz, _uV_per_rtHz, _mV_per_rtHz, _V_per_rtHz, _kV_per_rtHz, _MV_per_rtHz, _GV_per_rtHz, _TV_per_rtHz, _PV_per_rtHz, _EV_per_rtHz.

Catalytic activity

SI units

Classes:attokatal<T>, femtokatal<T>, picokatal<T>, nanokatal<T>, microkatal<T>, millikatal<T>, centikatal<T>, decikatal<T>, katal<T>, decakatal<T>, hectokatal<T>, kilokatal<T>, megakatal<T>, gigakatal<T>, terakatal<T>, petakatal<T>, exakatal<T>.
Literals:_akat, _fkat, _pkat, _nkat, _ukat, _mkat, _kat, _kkat, _Mkat, _Gkat, _Tkat, _Pkat, _Ekat.

Non-SI units

Classes:enzyme_unit<T>.

Luminous flux

SI units

Classes:attolumen<T>, femtolumen<T>, picolumen<T>, nanolumen<T>, microlumen<T>, millilumen<T>, centilumen<T>, decilumen<T>, lumen<T>, decalumen<T>, hectolumen<T>, kilolumen<T>, megalumen<T>, gigalumen<T>, teralumen<T>, petalumen<T>, exalumen<T>.
Literals:_alm, _flm, _plm, _nlm, _ulm, _mlm, _lm, _klm, _Mlm, _Glm, _Tlm, _Plm, _Elm.

Illuminance

SI units

Classes:attolux<T>, femtolux<T>, picolux<T>, nanolux<T>, microlux<T>, millilux<T>, centilux<T>, decilux<T>, lux<T>, decalux<T>, hectolux<T>, kilolux<T>, megalux<T>, gigalux<T>, teralux<T>, petalux<T>, exalux<T>.
Literals:_alx, _flx, _plx, _nlx, _ulx, _mlx, _lx, _klx, _Mlx, _Glx, _Tlx, _Plx, _Elx.