LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
test_fast_acos.cc
Go to the documentation of this file.
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 }
Float_t x
Definition: compare.C:6
int main()
double fast_acos(double xin)
double fast_acos(double x)