From b0d87cf7d57e4c29a569d631e87b46ef888cfbfb Mon Sep 17 00:00:00 2001 From: Marcel Loose <loose@astron.nl> Date: Mon, 3 Apr 2006 12:39:56 +0000 Subject: [PATCH] BugID: 61 `lofar_math.h' pulls all methods defined in `cmath' in namespace LOFAR. --- LCS/Common/include/Common/Makefile.am | 1 + LCS/Common/include/Common/lofar_math.h | 56 ++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 LCS/Common/include/Common/lofar_math.h diff --git a/LCS/Common/include/Common/Makefile.am b/LCS/Common/include/Common/Makefile.am index 4a89e5aa3fe..91bf4578e4f 100644 --- a/LCS/Common/include/Common/Makefile.am +++ b/LCS/Common/include/Common/Makefile.am @@ -30,6 +30,7 @@ pkginclude_HEADERS = \ LofarLogCout.h \ LofarLogger.h \ lofar_map.h \ + lofar_math.h \ lofar_set.h \ lofar_sstream.h \ lofar_stack.h \ diff --git a/LCS/Common/include/Common/lofar_math.h b/LCS/Common/include/Common/lofar_math.h new file mode 100644 index 00000000000..1d36f4561f1 --- /dev/null +++ b/LCS/Common/include/Common/lofar_math.h @@ -0,0 +1,56 @@ +//# lofar_math.h: +//# +//# Copyright (C) 2002 +//# ASTRON (Netherlands Foundation for Research in Astronomy) +//# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands, seg@astron.nl +//# +//# This program is free software; you can redistribute it and/or modify +//# it under the terms of the GNU General Public License as published by +//# the Free Software Foundation; either version 2 of the License, or +//# (at your option) any later version. +//# +//# This program is distributed in the hope that it will be useful, +//# but WITHOUT ANY WARRANTY; without even the implied warranty of +//# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +//# GNU General Public License for more details. +//# +//# You should have received a copy of the GNU General Public License +//# along with this program; if not, write to the Free Software +//# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +//# +//# $Id$ + +#ifndef LOFAR_COMMON_MATH_H +#define LOFAR_COMMON_MATH_H + +// \file + +#include <cmath> + +namespace LOFAR +{ + using std::acos; + using std::asin; + using std::atan; + using std::atan2; + using std::ceil; + using std::cos; + using std::cosh; + using std::exp; + using std::fabs; + using std::floor; + using std::fmod; + using std::frexp; + using std::ldexp; + using std::log; + using std::log10; + using std::modf; + using std::pow; + using std::sin; + using std::sinh; + using std::sqrt; + using std::tan; + using std::tanh; +} + +#endif -- GitLab