Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:58:14

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 /*
0027  * G4ErrorFunction.hh
0028  *
0029  *  Created on: Jul 23, 2019
0030  *      Author: W. G. Shin
0031  *              J. Ramos-Mendez and B. Faddegon
0032 */
0033 
0034 /*
0035  Extracted from http://ab-initio.mit.edu/Faddeeva
0036  Steven G. Johnson, October 2012.
0037 
0038  Copyright © 2012 Massachusetts Institute of Technology
0039 
0040  Permission is hereby granted, free of charge, to any person
0041  obtaining a copy of this software and associated documentation
0042  files (the "Software"), to deal in the Software without restriction,
0043  including without limitation the rights to use, copy, modify, merge,
0044  publish, distribute, sublicense, and/or sell copies of the Software,
0045  and to permit persons to whom the Software is furnished to do so,
0046  subject to the following conditions:
0047 
0048  The above copyright notice and this permission notice shall be
0049  included in all copies or substantial portions of the Software.
0050 */
0051 
0052 #ifndef G4ERRORFUNCTION_HH_
0053 #define G4ERRORFUNCTION_HH_
0054 
0055 #include "globals.hh"
0056 
0057 class G4ErrorFunction {
0058 public:
0059     G4ErrorFunction();
0060     virtual ~G4ErrorFunction();
0061 
0062     static G4double NormQuantile(G4double x);
0063     static G4double erfcx_y100(G4double x);
0064     static G4double erfcx(G4double x);
0065     static G4double erfc(G4double x);
0066     static G4double erfcInv(G4double x);
0067     static G4double erfcWxy(G4double c, G4double x, G4double y);
0068 
0069     static G4double Lambda(G4double x, G4double beta, G4double alpha);
0070 };
0071 
0072 #endif /* G4ERRORFUNCTION_HH_ */