Revision 4cc4c077d5e516e831796bfbd8ab2094a5be9171 authored by Carlos Arguelles on 28 December 2018, 16:46:08 UTC, committed by Carlos Arguelles on 28 December 2018, 16:46:08 UTC
1 parent 3748135
Raw File
tools_integrator.test.cpp
#include <iostream>
#include <nuSQuIDS/tools.h>

int main (int argc, char const *argv[])
{
  using namespace nusquids;

  double integral = integrate([](double x){ return x*x; }, 0.0, 2.0);
  if( fabs(integral - (2.0*2.0*2.0)/3.) > 1.e-5 ) std::cout << "Integral tolerance exceed" << std::endl;

  return 0;
}
back to top