ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
sf_log.hpp
Go to the documentation of this file.
1/*
2 * $Id: sf_log.hpp 9 2010-06-13 14:02:43Z jdl3 $
3 * Copyright (C) 2010 John D Lamb
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or (at
8 * your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19
20#ifndef CCGSL_SF_LOG_HPP
21#define CCGSL_SF_LOG_HPP
22
23#include<gsl/gsl_sf_log.h>
24#include"mode.hpp"
25#include"sf_result.hpp"
26
27namespace gsl {
28 namespace sf {
35 inline int log_e( double const x, result& result ){ return gsl_sf_log_e( x, &result ); }
41 inline double log( double const x ){ return gsl_sf_log( x ); }
49 inline int log_abs_e( double const x, result& result ){
50 return gsl_sf_log_abs_e( x, &result ); }
57 inline double log_abs( double const x ){ return gsl_sf_log_abs( x ); }
69 inline int complex_log_e( double const zr, double const zi, result& lnr, result& theta ){
70 return gsl_sf_complex_log_e( zr, zi, &lnr, &theta ); }
78 inline int log_1plusx_e( double const x, result& result ){ return gsl_sf_log_1plusx_e( x, &result ); }
85 inline double log_1plusx( double const x ){ return gsl_sf_log_1plusx( x ); }
93 inline int log_1plusx_mx_e( double const x, result& result ){
94 return gsl_sf_log_1plusx_mx_e( x, &result ); }
101 inline double log_1plusx_mx( double const x ){ return gsl_sf_log_1plusx_mx( x ); }
102 }
103}
104
105#endif
int complex_log_e(double const zr, double const zi, result &lnr, result &theta)
C++ version of gsl_sf_complex_log_e().
Definition: sf_log.hpp:69
double log(double const x)
C++ version of gsl_sf_log().
Definition: sf_log.hpp:41
double log_1plusx(double const x)
C++ version of gsl_sf_log_1plusx().
Definition: sf_log.hpp:85
int log_1plusx_mx_e(double const x, result &result)
C++ version of gsl_sf_log_1plusx_mx_e().
Definition: sf_log.hpp:93
double log_1plusx_mx(double const x)
C++ version of gsl_sf_log_1plusx_mx().
Definition: sf_log.hpp:101
double log_abs(double const x)
C++ version of gsl_sf_log_abs().
Definition: sf_log.hpp:57
int log_abs_e(double const x, result &result)
C++ version of gsl_sf_log_abs_e().
Definition: sf_log.hpp:49
int log_e(double const x, result &result)
C++ version of gsl_sf_log_e().
Definition: sf_log.hpp:35
gsl_sf_result result
Typedef for gsl_sf_result.
Definition: sf_result.hpp:30
int log_1plusx_e(double const x, result &result)
C++ version of gsl_sf_log_1plusx_e().
Definition: sf_log.hpp:78
The gsl package creates an interface to the GNU Scientific Library for C++.
Definition: blas.hpp:34