Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- G4double G4ElasticHadrNucleusHE::
- HadrNucDifferCrSec(G4int Nucleus, G4double aQ2)
- {
- ....
- dSigPodT = HadrTot*HadrTot*(1+HadrReIm*HadrReIm)*
- (
- Coeff1*std::exp(-Slope1*SqrQ2)+
- Coeff2*std::exp( Slope2*(ConstU)+aQ2)+
- (1-Coeff1-Coeff0)*std::exp(-HadrSlope*aQ2)+
- +Coeff0*std::exp(-Slope0*aQ2)
- )/16/3.1416*2.568;
- ....
- }
- This suspicious code was found in Geant4 project by PVS-Studio static code analyzer.
- Warning message is:
- V624 The constant 3.1416 is being utilized. The resulting value could be inaccurate. Consider using the M_PI constant from <math.h>. g4elastichadrnucleushe.cc 750
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement