![]() |
|
|||
File indexing completed on 2025-09-15 08:55:08
0001 //------------------------------- -*- C++ -*- -------------------------------// 0002 // Copyright Celeritas contributors: see top-level COPYRIGHT file for details 0003 // SPDX-License-Identifier: (Apache-2.0 OR MIT) 0004 //---------------------------------------------------------------------------// 0005 //! \file corecel/Constants.hh 0006 //! \brief Mathematical constants. See \c celeritas/Constants.hh for physical. 0007 //---------------------------------------------------------------------------// 0008 #pragma once 0009 0010 #include "math/Constant.hh" 0011 0012 namespace celeritas 0013 { 0014 namespace constants 0015 { 0016 //---------------------------------------------------------------------------// 0017 0018 #define CELER_ICRT_ inline constexpr Constant 0019 0020 //!@{ 0021 //! \name Mathemetical constants (truncated) 0022 CELER_ICRT_ pi{3.14159265358979323846}; 0023 CELER_ICRT_ sqrt_pi{1.77245385090551602730}; 0024 0025 CELER_ICRT_ euler{2.71828182845904523536}; 0026 CELER_ICRT_ sqrt_euler{1.64872127070012814685}; 0027 0028 CELER_ICRT_ sqrt_two{1.41421356237309504880}; 0029 CELER_ICRT_ sqrt_three{1.73205080756887729353}; 0030 //!@} 0031 0032 #undef CELER_ICRT_ 0033 0034 //---------------------------------------------------------------------------// 0035 } // namespace constants 0036 } // namespace celeritas
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |