NumCpp  2.12.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
Core/Constants.hpp File Reference
#include <cmath>
#include <complex>
#include <limits>

Go to the source code of this file.

Namespaces

namespace  nc
 
namespace  nc::constants
 

Variables

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

Detailed Description

Author
David Pilger dpilg.nosp@m.er26.nosp@m.@gmai.nosp@m.l.co.nosp@m.m GitHub Repository

License Copyright 2018-2023 David Pilger

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions :

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Description Holds usefull constants