<commit_before>// @(#)root/test:$Id$
// Author: <NAME>   06/2005 
///////////////////////////////////////////////////////////////////////////////////
//
//  MathMore Benchmark test suite
//  ==============================
//
//  This program performs tests : 
//     - numerical integration, derivation and root finders
//    - it compares for various values of the gamma and beta distribution) 
//          - the numerical calculated integral of pdf  with cdf function, 
//           - the calculated derivative of cdf with pdf 
//           - the inverse (using root finder) of cdf with quantile
//
//     to run the program outside ROOT do: 
//        > make stressMathMore
//        > ./stressMathMore
// 
//     to run the program in ROOT
//       root> gSystem->Load("libMathMore") 
//       root> .x stressMathMore.cxx+
//

#include "Math/DistFunc.h"
#include "Math/IParamFunction.h"
#include "Math/Integrator.h"
#include "Math/Derivator.h"
#include "Math/Functor.h"
#include "Math/RootFinderAlgorithms.h"
#include "Math/RootFinder.h"

#include <iostream>
#include <iomanip>
#include <limits>
#include <cmath>
#include "TBenchmark.h"
#include "TROOT.h"
#include "TRandom3.h"
#include "TSystem.h"
#include "TF1.h"

using namespace ROOT::Math; 




#if defined(__CINT__) && defined(__MAKEDICT__)
#define INF std::numeric_limits<double>::infinity() 
#else  
#define INF 1.0E400
#endif 

//#define DEBUG

bool debug = true;  // print out reason of test failures
bool removeFiles = false; // remove Output root files 

void PrintTest(std::string name) { 
   std::cout << std::left << std::setw(40) << name; 
}

void PrintStatus(int iret) { 
   if (iret == 0) 
      std::cout <<"\t\t................ OK" << std::endl;
   else  
      std::cout <<"\t\t............ FAILED " << std::endl;
}


int compare( std::string name, double v1, double v2, double scale = 2.0) {
  //  ntest = ntest + 1; 

   //std::cout << std::setw(50) << std::left << name << ":\t";   
   
  // numerical double limit for epsilon 
   double eps = scale* std::numeric_limits<double>::epsilon();
   int iret = 0; 
   double delta = v2 - v1;<commit_msg>From Bertrand: Fix a fatal compilation error on Windows<commit_after>// @(#)root/test:$Id$
// Author: <NAME>   06/2005 
///////////////////////////////////////////////////////////////////////////////////
//
//  MathMore Benchmark test suite
//  ==============================
//
//  This program performs tests : 
//     - numerical integration, derivation and root finders
//    - it compares for various values of the gamma and beta distribution) 
//          - the numerical calculated integral of pdf  with cdf function, 
//           - the calculated derivative of cdf with pdf 
//           - the inverse (using root finder) of cdf with quantile
//
//     to run the program outside ROOT do: 
//        > make stressMathMore
//        > ./stressMathMore
// 
//     to run the program in ROOT
//       root> gSystem->Load("libMathMore") 
//       root> .x stressMathMore.cxx+
//

#include "Math/DistFunc.h"
#include "Math/IParamFunction.h"
#include "Math/Integrator.h"
#include "Math/Derivator.h"
#include "Math/Functor.h"
#include "Math/RootFinderAlgorithms.h"
#include "Math/RootFinder.h"

#include <iostream>
#include <iomanip>
#include <limits>
#include <cmath>
#include "TBenchmark.h"
#include "TROOT.h"
#include "TRandom3.h"
#include "TSystem.h"
#include "TF1.h"

using namespace ROOT::Math; 




#if defined(__CINT__) && defined(__MAKEDICT__)
#define INF std::numeric_limits<double>::infinity() 
#else  
#define INF 1.7E308
#endif 

//#define DEBUG

bool debug = true;  // print out reason of test failures
bool removeFiles = false; // remove Output root files 

void PrintTest(std::string name) { 
   std::cout << std::left << std::setw(40) << name; 
}

void PrintStatus(int iret) { 
   if (iret == 0) 
      std::cout <<"\t\t................ OK" << std::endl;
   else  
      std::cout <<"\t\t............ FAILED " << std::endl;
}


int compare( std::string name, double v1, double v2, double scale = 2.0) {
  //  ntest = ntest + 1; 

   //std::cout << std::setw(50) << std::left << name << ":\t";   
   
  // numerical double limit for epsilon 
   double eps = scale* std::numeric_limits<double>::epsilon();
   int iret = 0; 
   double delta = v2 - v1;
{'fraction_non_alphanumeric': 0.20386766076421248, 'fraction_numerical': 0.012115563839701771, 'mean_word_length': 2.4426623897353648, 'pattern_counts': {'":': 2, '<': 61, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5660316', 'n_tokens_mistral': 1434, 'n_tokens_neox': 1353, 'n_words': 401}