LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
test_fast_acos.cc File Reference
#include "larsim/PhotonPropagation/PhotonPropagationUtils.h"
#include <cmath>
#include <iomanip>
#include <iostream>

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

int main ( )

Definition at line 9 of file test_fast_acos.cc.

References larg4::fast_acos(), and x.

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
double fast_acos(double x)