Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
Math tutorials

Examples showing the Math classes.

Modules

 Fast Fourier Transforms tutorials
 Example showing the Fast Fourier Transforms interface in ROOT.
 
 Fit Tutorials
 These tutorials illustrate the main fitting features. Their names are related to the aspect which is treated in the code.
 
 FOAM tutorials
 Examples showing how to use FOAM.
 
 Matrix tutorials
 Examples showing how to use TMatrix.
 
 Probability distributions tutorials
 Examples showing the available probability distributions in ROOT.
 
 Quadratic programming package
 Example showing the usage of the quadratic programming package quadp.
 
 R tutorials
 Examples showing the R interface.
 
 Unuran tutorials
 Examples showing unuran capabilities.
 
 VecOps tutorials
 These examples show the functionalities of the VecOps utilities.
 

Files

file  ChebyshevPol.C
  View in nbviewer Open in SWAN
Example of Chebyshev polynomials using new TFormula pre-defined definitions of chebyshev polynomials
 
file  chi2test.C
  View in nbviewer Open in SWAN
Example to use chi2 test for comparing two histograms One unweighted histogram is compared with a weighted histogram.
 
file  exampleFunction.py
  View in nbviewer Open in SWAN
Example of using Python functions and input to numerical algorithm using the ROOT Functor class
 
file  exampleFunctor.C
  View in nbviewer Open in SWAN
Tutorial illustrating how creating a TF1 class using functor or class member functions
 
file  exampleMultiRoot.C
  View in nbviewer Open in SWAN
Example of using multiroot finder based on GSL algorithm.
 
file  exampleTKDE.C
  View in nbviewer Open in SWAN
Example of using the TKDE class (kernel density estimator)
 
file  GammaFun.C
  View in nbviewer Open in SWAN
Example showing the usage of the major special math functions (gamma, beta, erf) in ROOT To execute the macro type in:
 
file  goftest.C
  View in nbviewer Open in SWAN
GoFTest tutorial macro
 
file  hlquantiles.C
 Demo for quantiles (with highlight mode)
 
file  kdTreeBinning.C
  View in nbviewer Open in SWAN
kdTreeBinning tutorial: bin the data in cells of equal content using a kd-tree
 
file  Legendre.C
  View in nbviewer Open in SWAN
Example of first few Legendre Polynomials
 
file  Legendre.py
  View in nbviewer Open in SWAN
Example of first few Legendre Polynomials.
 
file  LegendreAssoc.C
  View in nbviewer Open in SWAN
Example describing the usage of different kinds of Associate Legendre Polynomials To execute the macro type in:
 
file  limit.C
  View in nbviewer Open in SWAN
This program demonstrates the computation of 95 % confidence level (CL) limits.
 
file  mathcoreGenVector.C
  View in nbviewer Open in SWAN
Example macro testing available methods and operation of the GenVector classes.
 
file  mathcoreSpecFunc.C
  View in nbviewer Open in SWAN
Example macro describing how to use the special mathematical functions taking full advantage of the precision and speed of the C99 compliant environments.
 
file  mathcoreVectorCollection.C
  View in nbviewer Open in SWAN
Example showing how to write and read a std vector of ROOT::Math LorentzVector in a ROOT tree.
 
file  mathcoreVectorFloatIO.C
  View in nbviewer Open in SWAN
Macro illustrating I/O with Lorentz Vectors of floats The dictionary for LorentzVector of float is not in the libMathCore, therefore is generated when parsed the file with CLING.
 
file  mathcoreVectorIO.C
  View in nbviewer Open in SWAN
Example of I/O of a mathcore Lorentz Vectors in a Tree and comparison with a TLorentzVector.
 
file  mathmoreIntegration.C
  View in nbviewer Open in SWAN
Example on the usage of the adaptive 1D integration algorithm of MathMore it calculates the numerically cumulative integral of a distribution (like in this case the BreitWigner) to execute the macro type it (you need to compile with AClic)
 
file  mathmoreIntegrationMultidim.C
  View in nbviewer Open in SWAN
Example on the usage of the multidimensional integration algorithm of MathMore Please refer to the web documentation for further details: https://root.cern/manual/math/#numerical-integration To execute the macro type the following:
 
file  multidimSampling.C
  View in nbviewer Open in SWAN
Example of sampling a multi-dim distribution using the DistSampler class NOTE: This tutorial must be run with ACLIC
 
file  permute.C
  View in nbviewer Open in SWAN
Tutorial illustrating the use of TMath::Permute can be run with:
 
file  principal.C
  View in nbviewer Open in SWAN
Principal Components Analysis (PCA) example
 
file  principal.py
  View in nbviewer Open in SWAN
Principal Components Analysis (PCA) example
 
file  quantiles.C
  View in nbviewer Open in SWAN
Demo for quantiles
 
file  quasirandom.C
  View in nbviewer Open in SWAN
Example of generating quasi-random numbers
 
file  testrandom.C
  View in nbviewer Open in SWAN
Performance test of all the ROOT random generator (TRandom, TRandom1, TRandom2 and TRandom3) Tests the generator TRandom3 against some ref values and creates a timing table against TRandom, TRandom1 and TRandom2.
 
file  TSVDUnfoldExample.C
  View in nbviewer Open in SWAN
Data unfolding using Singular Value Decomposition