From 5adf92b7ce508024decd6e0d43787c683400f36d Mon Sep 17 00:00:00 2001 From: Rene Brun <Rene.Brun@cern.ch> Date: Tue, 23 Jun 2009 10:55:30 +0000 Subject: [PATCH] From Fons: in addition to the tmva, here the latest diff for OpenSolaris. With this everything compiles fine. git-svn-id: http://root.cern.ch/svn/root/trunk@29162 27541ba8-7e3a-0410-8455-c3a389f83636 --- math/mathcore/src/MinimizerVariableTransformation.cxx | 6 +++--- roofit/roostats/src/HybridPlot.cxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/math/mathcore/src/MinimizerVariableTransformation.cxx b/math/mathcore/src/MinimizerVariableTransformation.cxx index f8f3c06d3a9..c3859fbe6e6 100644 --- a/math/mathcore/src/MinimizerVariableTransformation.cxx +++ b/math/mathcore/src/MinimizerVariableTransformation.cxx @@ -58,7 +58,7 @@ double SinVariableTransformation::DInt2Ext(double value, double lower, double up double SqrtLowVariableTransformation::Int2ext(double value, double lower, double) const { /// internal to external transformation - double val = lower - 1. + sqrt( value*value + 1.); + double val = lower - 1. + std::sqrt( value*value + 1.); return val; } @@ -70,12 +70,12 @@ double SqrtLowVariableTransformation::Ext2int(double value, double lower, double if (yy2 < 1. ) return 0; else - return sqrt( yy2 -1); + return std::sqrt( yy2 -1); } double SqrtLowVariableTransformation::DInt2Ext(double value, double, double) const { // derivative of internal to external transofrmation : d (Int2Ext) / d Int - double val = value/( sqrt( value*value + 1.) ); + double val = value/( std::sqrt( value*value + 1.) ); return val; } diff --git a/roofit/roostats/src/HybridPlot.cxx b/roofit/roostats/src/HybridPlot.cxx index 6668345b886..706c2b5a5ca 100644 --- a/roofit/roostats/src/HybridPlot.cxx +++ b/roofit/roostats/src/HybridPlot.cxx @@ -336,7 +336,7 @@ double* HybridPlot::GetHistoPvals (TH1* histo, double percentage){ for (it = extremes_map.begin();it != extremes_map.end();++it){ a=it->first; b=it->second; - current_diff=fabs(histo->GetBinContent(a)-histo->GetBinContent(b)); + current_diff=std::fabs(histo->GetBinContent(a)-histo->GetBinContent(b)); if (current_diff<diff){ //std::cout << "a=" << a << " b=" << b << std::endl; diff=current_diff; -- GitLab