Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CLHEP
CLHEP
Commits
6c176c9d
Commit
6c176c9d
authored
Aug 08, 2014
by
Lynn Garren
Browse files
move definition of pi into SystemOfUnits so it is not defined twice
parent
012adb71
Changes
4
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
6c176c9d
2014-08-08 Lynn Garren <garren@fnal.gov>
* Units/Units/SystemOfUnits.h, Units/Units/PhysicalConstants.h:
move definition of pi into SystemOfUnits so it is not defined twice
Note that PhysicalConstants.h includes SystemOfUnits.h.
2014-08-04 Lynn Garren <garren@fnal.gov>
* Utility/Utility/Utility-config.in: remove unnecessary -lm
...
...
Units/ChangeLog
View file @
6c176c9d
2014-08-08 Lynn Garren <garren@fnal.gov>
* Units/SystemOfUnits.h, Units/PhysicalConstants.h:
move definition of pi into SystemOfUnits so it is not defined twice
Note that PhysicalConstants.h includes SystemOfUnits.h.
==============================
23.06.14 Release CLHEP-2.2.0.1
==============================
...
...
Units/Units/PhysicalConstants.h
View file @
6c176c9d
...
...
@@ -44,14 +44,6 @@
namespace
CLHEP
{
//
//
//
static
const
double
pi
=
3.14159265358979323846
;
static
const
double
twopi
=
2
*
pi
;
static
const
double
halfpi
=
pi
/
2
;
static
const
double
pi2
=
pi
*
pi
;
//
//
//
...
...
Units/Units/SystemOfUnits.h
View file @
6c176c9d
...
...
@@ -48,6 +48,14 @@
namespace
CLHEP
{
//
//
//
static
const
double
pi
=
3.14159265358979323846
;
static
const
double
twopi
=
2
*
pi
;
static
const
double
halfpi
=
pi
/
2
;
static
const
double
pi2
=
pi
*
pi
;
//
// Length [L]
//
...
...
@@ -107,7 +115,7 @@ namespace CLHEP {
//
static
const
double
radian
=
1.
;
static
const
double
milliradian
=
1.e-3
*
radian
;
static
const
double
degree
=
(
3.14159265358979323846
/
180.0
)
*
radian
;
static
const
double
degree
=
(
pi
/
180.0
)
*
radian
;
static
const
double
steradian
=
1.
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment