NumCpp  2.12.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
nc::constants Namespace Reference

Variables

constexpr double c = 3.e8
 speed of light More...
 
constexpr double DAYS_PER_WEEK = 7
 Number of days in a week. More...
 
constexpr double e = 2.718281828459045
 eulers number More...
 
constexpr double HOURS_PER_DAY = 24
 Number of hours in a day. More...
 
constexpr double inf = std::numeric_limits<double>::infinity()
 infinity More...
 
constexpr auto j = std::complex<double>(0, 1)
 
constexpr double MILLISECONDS_PER_DAY
 Number of milliseconds in a day. More...
 
constexpr double MILLISECONDS_PER_SECOND = 1000
 Number of milliseconds in a second. More...
 
constexpr double MINUTES_PER_DAY = HOURS_PER_DAY * MINUTES_PER_HOUR
 Number of minutes in a day. More...
 
constexpr double MINUTES_PER_HOUR = 60
 Number of minutes in an hour. More...
 
const double nan = std::nan("1")
 NaN. More...
 
constexpr double pi = 3.141592653589793238462643383279502884
 Pi. More...
 
constexpr double SECONDS_PER_DAY = MINUTES_PER_DAY * SECONDS_PER_MINUTE
 Number of seconds in a day. More...
 
constexpr double SECONDS_PER_HOUR = MINUTES_PER_HOUR * SECONDS_PER_MINUTE
 Number of seconds in an hour. More...
 
constexpr double SECONDS_PER_MINUTE = 60
 Number of seconds in a minute. More...
 
constexpr double SECONDS_PER_WEEK = SECONDS_PER_DAY * DAYS_PER_WEEK
 Number of seconds in a week. More...
 
constexpr double twoPi = 2. * pi
 2Pi More...
 

Variable Documentation

◆ c

constexpr double nc::constants::c = 3.e8
constexpr

speed of light

Examples
ReadMe.cpp.

◆ DAYS_PER_WEEK

constexpr double nc::constants::DAYS_PER_WEEK = 7
constexpr

Number of days in a week.

◆ e

constexpr double nc::constants::e = 2.718281828459045
constexpr

eulers number

◆ HOURS_PER_DAY

constexpr double nc::constants::HOURS_PER_DAY = 24
constexpr

Number of hours in a day.

◆ inf

constexpr double nc::constants::inf = std::numeric_limits<double>::infinity()
constexpr

infinity

◆ j

constexpr auto nc::constants::j = std::complex<double>(0, 1)
constexpr

◆ MILLISECONDS_PER_DAY

constexpr double nc::constants::MILLISECONDS_PER_DAY
constexpr
Initial value:
=
constexpr double MILLISECONDS_PER_SECOND
Number of milliseconds in a second.
Definition: Core/Constants.hpp:47
constexpr double SECONDS_PER_DAY
Number of seconds in a day.
Definition: Core/Constants.hpp:51

Number of milliseconds in a day.

◆ MILLISECONDS_PER_SECOND

constexpr double nc::constants::MILLISECONDS_PER_SECOND = 1000
constexpr

Number of milliseconds in a second.

◆ MINUTES_PER_DAY

constexpr double nc::constants::MINUTES_PER_DAY = HOURS_PER_DAY * MINUTES_PER_HOUR
constexpr

Number of minutes in a day.

◆ MINUTES_PER_HOUR

constexpr double nc::constants::MINUTES_PER_HOUR = 60
constexpr

Number of minutes in an hour.

◆ nan

const double nc::constants::nan = std::nan("1")

NaN.

Examples
ReadMe.cpp.

◆ pi

constexpr double nc::constants::pi = 3.141592653589793238462643383279502884
constexpr

Pi.

Examples
ReadMe.cpp.

◆ SECONDS_PER_DAY

constexpr double nc::constants::SECONDS_PER_DAY = MINUTES_PER_DAY * SECONDS_PER_MINUTE
constexpr

Number of seconds in a day.

◆ SECONDS_PER_HOUR

constexpr double nc::constants::SECONDS_PER_HOUR = MINUTES_PER_HOUR * SECONDS_PER_MINUTE
constexpr

Number of seconds in an hour.

◆ SECONDS_PER_MINUTE

constexpr double nc::constants::SECONDS_PER_MINUTE = 60
constexpr

Number of seconds in a minute.

◆ SECONDS_PER_WEEK

constexpr double nc::constants::SECONDS_PER_WEEK = SECONDS_PER_DAY * DAYS_PER_WEEK
constexpr

Number of seconds in a week.

◆ twoPi

constexpr double nc::constants::twoPi = 2. * pi
constexpr

2Pi