diff options
author | Bruno Haible <bruno@clisp.org> | 2007-02-18 15:10:28 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2007-02-18 15:10:28 +0000 |
commit | e1123c2f4fedae90435426a82a05cf2e3233e97d (patch) | |
tree | cd6fcc768d636abc63e601a545cd352ccd2ed5cf /lib/logl.c | |
parent | d9a58db4fa4dc35c7166db177a5e38a2f82e7ee6 (diff) | |
download | gnulib-e1123c2f4fedae90435426a82a05cf2e3233e97d.tar.gz |
New module 'math'. <math.h> replaces mathl.h.
Diffstat (limited to 'lib/logl.c')
-rw-r--r-- | lib/logl.c | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/lib/logl.c b/lib/logl.c index 374b731fdd..dc75a8fd72 100644 --- a/lib/logl.c +++ b/lib/logl.c @@ -1,3 +1,25 @@ +/* Copyright 2001 by Stephen L. Moshier <moshier@na-net.ornl.gov> + + 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, 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; see the file COPYING. + If not, write to the Free Software Foundation, + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#include <config.h> + +/* Specification. */ +#include <math.h> + /* logll.c * * Natural logarithm for 128-bit long double precision. @@ -42,27 +64,6 @@ * */ -#include <math.h> - -#include "mathl.h" - -/* Copyright 2001 by Stephen L. Moshier <moshier@na-net.ornl.gov> - - 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, 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; see the file COPYING. - If not, write to the Free Software Foundation, - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ - /* log(1+x) = x - .5 x^2 + x^3 l(x) -.0078125 <= x <= +.0078125 peak relative error 1.2e-37 */ |