Gaudi Framework, version v21r9

Home   Generated: 3 May 2010

cbrt.h File Reference

Provide the function cbrt (gcc specific) to all platforms. More...

#include <cmath>

Include dependency graph for cbrt.h:

Go to the source code of this file.

Defines

#define cbrt_for_int_type(t)   inline double cbrt( t __x ) { return cbrt ( static_cast<double>(__x) ); }

Functions

double cbrt (double __x)
float cbrt (float __x)
long double cbrt (long double __x)


Detailed Description

Provide the function cbrt (gcc specific) to all platforms.

Author:
Marco Clemencic (form an idea of Chris Jones)
Date:
27/07/2007

Definition in file cbrt.h.


Define Documentation

#define cbrt_for_int_type ( t   )     inline double cbrt( t __x ) { return cbrt ( static_cast<double>(__x) ); }

Definition at line 46 of file cbrt.h.


Function Documentation

long double cbrt ( long double  __x  )  [inline]

Definition at line 37 of file cbrt.h.

00037                                            {
00038 #ifdef __GNUC__
00039   return ::cbrtl( __x );
00040 #else
00041   return ::pow( __x, static_cast<long double>(1.0/3.0) );
00042 #endif
00043 }

float cbrt ( float  __x  )  [inline]

Definition at line 28 of file cbrt.h.

00028                                {
00029 #ifdef __GNUC__
00030   return ::cbrtf( __x );
00031 #else
00032   return ::pow( __x, static_cast<float>(1.0/3.0) );
00033 #endif
00034 }

double cbrt ( double  __x  )  [inline]

Definition at line 22 of file cbrt.h.

00022                                 {
00023   return ::pow( __x, static_cast<double>(1.0/3.0) );
00024 }


Generated at Mon May 3 12:16:30 2010 for Gaudi Framework, version v21r9 by Doxygen version 1.5.6 written by Dimitri van Heesch, © 1997-2004