LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
test_fast_acos.cc
Go to the documentation of this file.
1
#include "
larsim/PhotonPropagation/PhotonPropagationUtils.h
"
2
3
#include <cmath>
4
#include <iomanip>
5
#include <iostream>
6
7
using
phot::fast_acos
;
8
9
int
main
()
10
{
11
std::cout <<
"fast\tstd\n"
;
12
std::cout << std::setprecision(17);
13
for
(
int
i = 0; i <= 100; ++i) {
14
double
x
=
static_cast<
double
>
(i) / 100.0;
15
double
f_x =
fast_acos
(x);
16
double
y_x = std::acos(x);
17
std::cout << f_x <<
'\t'
<< y_x <<
'\n'
;
18
}
19
}
x
Float_t x
Definition:
compare.C:6
PhotonPropagationUtils.h
main
int main()
Definition:
test_fast_acos.cc:9
phot::fast_acos
double fast_acos(double xin)
Definition:
PhotonPropagationUtils.cxx:25
larg4::fast_acos
double fast_acos(double x)
Definition:
OpFastScintillation.cxx:2172
larsim
v09_43_00
source
larsim
PhotonPropagation
test_fast_acos.cc
Generated on Thu May 2 2024 20:59:52 for LArSoft by
1.8.11