GSLRootHelper.cxx

Go to the documentation of this file.
00001 // @(#)root/mathmore:$Id: GSLRootHelper.cxx 20882 2007-11-19 11:31:26Z rdm $
00002 // Authors: L. Moneta, A. Zsenei   08/2005 
00003 
00004  /**********************************************************************
00005   *                                                                    *
00006   * Copyright (c) 2004 ROOT Foundation,  CERN/PH-SFT                   *
00007   *                                                                    *
00008   * This library is free software; you can redistribute it and/or      *
00009   * modify it under the terms of the GNU General Public License        *
00010   * as published by the Free Software Foundation; either version 2     *
00011   * of the License, or (at your option) any later version.             *
00012   *                                                                    *
00013   * This library is distributed in the hope that it will be useful,    *
00014   * but WITHOUT ANY WARRANTY; without even the implied warranty of     *
00015   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU   *
00016   * General Public License for more details.                           *
00017   *                                                                    *
00018   * You should have received a copy of the GNU General Public License  *
00019   * along with this library (see file COPYING); if not, write          *
00020   * to the Free Software Foundation, Inc., 59 Temple Place, Suite      *
00021   * 330, Boston, MA 02111-1307 USA, or contact the author.             *
00022   *                                                                    *
00023   **********************************************************************/
00024 
00025 // Implementation file for class GSLRootHelper
00026 // 
00027 // Created by: moneta  at Sun Nov 14 21:34:15 2004
00028 // 
00029 // Last update: Sun Nov 14 21:34:15 2004
00030 // 
00031 
00032 #include "Math/GSLRootHelper.h"
00033 
00034 #include "gsl/gsl_roots.h"
00035 
00036 namespace ROOT {
00037 namespace Math {
00038    
00039    namespace GSLRootHelper { 
00040       
00041       
00042       int TestInterval(double xlow, double xup, double epsAbs, double epsRel) { 
00043          
00044          return gsl_root_test_interval( xlow, xup, epsAbs, epsRel); 
00045       } 
00046       
00047       int TestDelta(double x1, double x0, double epsAbs, double epsRel) { 
00048          // be careful is inverted with respect to GSL (don't know why ) 
00049          return gsl_root_test_delta( x1, x0, epsRel, epsAbs); 
00050       } 
00051       
00052       int TestResidual(double f, double epsAbs) { 
00053          
00054          return gsl_root_test_residual( f, epsAbs); 
00055       } 
00056       
00057    }
00058    
00059 } // namespace Math
00060 } // namespace ROOT

Generated on Tue Jul 5 14:34:56 2011 for ROOT_528-00b_version by  doxygen 1.5.1