|
||||
File indexing completed on 2025-01-18 09:54:50
0001 //----------------------------------*-C++-*----------------------------------// 0002 // Copyright 2023-2024 UT-Battelle, LLC, and other Celeritas developers. 0003 // See the top-level COPYRIGHT file for details. 0004 // SPDX-License-Identifier: (Apache-2.0 OR MIT) 0005 //---------------------------------------------------------------------------// 0006 //! \file corecel/Constants.hh 0007 //! \brief Mathematical constants. See \c celeritas/Constants.hh for physical. 0008 //---------------------------------------------------------------------------// 0009 #pragma once 0010 0011 #include "Types.hh" 0012 0013 namespace celeritas 0014 { 0015 namespace constants 0016 { 0017 //---------------------------------------------------------------------------// 0018 0019 #define CELER_ICRT_ inline constexpr real_type 0020 0021 //!@{ 0022 //! \name Mathemetical constants (truncated) 0023 CELER_ICRT_ pi = 3.14159265358979323846; 0024 CELER_ICRT_ euler = 2.71828182845904523536; 0025 CELER_ICRT_ sqrt_two = 1.41421356237309504880; 0026 CELER_ICRT_ sqrt_three = 1.73205080756887729353; 0027 //!@} 0028 0029 #undef CELER_ICRT_ 0030 0031 //---------------------------------------------------------------------------// 0032 } // namespace constants 0033 } // 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 |