## Mathematics Mathematics |

## Functions

double | acosh ()
double | asinh ()
double | atanh ()
double | expm1 ()
long double | frexpl ()
double | go_add_epsilon ()
long double | go_add_epsilonl ()
double | go_ascii_strtod ()
long double | go_ascii_strtold ()
double | go_atan2pi ()
long double | go_atan2pil ()
double | go_atanpi ()
long double | go_atanpil ()
void | go_continued_fraction ()
double | go_cospi ()
long double | go_cospil ()
double | go_cotpi ()
long double | go_cotpil ()
void | go_dtoa ()
double | go_fake_ceil ()
long double | go_fake_ceill ()
double | go_fake_floor ()
long double | go_fake_floorl ()
double | go_fake_round ()
long double | go_fake_roundl ()
double | go_fake_trunc ()
long double | go_fake_truncl ()
int | go_finite ()
int | go_finitel ()
long double | go_log10l ()
double | go_pow ()
long double | go_powl ()
double | go_pow10 ()
long double | go_pow10l ()
double | go_pow2 ()
long double | go_pow2l ()
double | go_rint ()
void | go_stern_brocot ()
double | go_strtod ()
long double | go_strtold ()
double | go_sub_epsilon ()
long double | go_sub_epsilonl ()
long double | ldexpl ()
double | log1p ()
long double | modfl ()
long double | strtold ()

## Types and Values

#define | M_PI
#define | isnan

## Description

## Functions

### acosh ()

    double
    acosh (double x);

### asinh ()

    double
    asinh (double x);

### atanh ()

    double
    atanh (double x);

### expm1 ()

    double
    expm1 (double x);

### frexpl ()

    long double
    frexpl (long double x,
            int *e);

### go_add_epsilon ()

    double
    go_add_epsilon (double x);

Returns the next-larger representable value, except that zero and infinites are returned unchanged.

#### Parameters

x | a number |

### go_add_epsilonl ()

    long double
    go_add_epsilonl (long double x);

Returns the next-larger representable value, except that zero and infinites are returned unchanged.

#### Parameters

x | a number |

### go_ascii_strtod ()

    double
    go_ascii_strtod (const char *s,
                     char **end);

Like g_ascii_strtod, but without hex notation and MS extensions. There is no need to reset errno before calling this.

#### Parameters

s | string to convert |
end | optional pointer to end of string. |

### go_ascii_strtold ()

    long double
    go_ascii_strtold (const char *s,
                      char **end);

Like strtold, but without hex notation and MS extensions and also assuming "C" locale. Unlike strtold, there is no need to reset errno before calling this.

#### Parameters

s | string to convert |
end | optional pointer to end of string. |

### go_atan2pi ()

    double
    go_atan2pi (double y,
                double x);

#### Parameters

y | a number |
x | a number |

#### Returns

the polar angle of the point (`x` ,`y` ) in radians divided by Pi. The result is a number between -1 and +1.

### go_atan2pil ()

    long double
    go_atan2pil (long double y,
                 long double x);

#### Parameters

y | a number |
x | a number |

#### Returns

the polar angle of the point (`x` ,`y` ) in radians divided by Pi. The result is a number between -1 and +1.

### go_atanpi ()

    double
    go_atanpi (double x);

#### Parameters

x | a number |

#### Returns

the arc tangent of `x` in radians divided by Pi. The result is a number between -1 and +1.

### go_atanpil ()

    long double
    go_atanpil (long double x);

#### Parameters

x | a number |

#### Returns

the arc tangent of `x` in radians divided by Pi. The result is a number between -1 and +1.

### go_continued_fraction ()

    void
    go_continued_fraction (double val,
                           int max_denom,
                           int *res_num,
                           int *res_denom);

### go_cospi ()

    double
    go_cospi (double x);

#### Parameters

x | a number |

#### Returns

the cosine of Pi times `x` , but with less error than doing the multiplication outright.

### go_cospil ()

    long double
    go_cospil (long double x);

#### Parameters

x | a number |

#### Returns

the cosine of Pi times `x` , but with less error than doing the multiplication outright.

### go_cotpi ()

    double
    go_cotpi (double x);

#### Parameters

x | a number |

#### Returns

the cotangent of Pi times `x` , but with less error than doing the multiplication outright.

### go_cotpil ()

    long double
    go_cotpil (long double x);

#### Parameters

x | a number |

#### Returns

the cotangent of Pi times `x` , but with less error than doing the multiplication outright.

### go_dtoa ()

    void
    go_dtoa (GString *dst,
             const char *fmt,
             ...);

### go_fake_ceil ()

    double
    go_fake_ceil (double x);

#### Parameters

x | value to ceil |

#### Returns

the ceiling of `x` , ie., the smallest integer that is not smaller than `x` . However, this variant applies a 1 ulp grace interval for values that are just a hair larger than an integer.

### go_fake_ceill ()

    long double
    go_fake_ceill (long double x);

#### Parameters

x | value to ceil |

#### Returns

the ceiling of `x` , ie., the smallest integer that is not smaller than `x` . However, this variant applies a 1 ulp grace interval for values that are just a hair larger than an integer.

### go_fake_floor ()

    double
    go_fake_floor (double x);

#### Parameters

x | value to floor |

#### Returns

the floor of `x` , ie., the largest integer that is not larger than `x` . However, this variant applies a 1 ulp grace interval for values that are just a hair less than an integer.

### go_fake_floorl ()

    long double
    go_fake_floorl (long double x);

#### Parameters

x | value to floor |

#### Returns

the floor of `x` , ie., the largest integer that is not larger than `x` . However, this variant applies a 1 ulp grace interval for values that are just a hair less than an integer.

### go_fake_round ()

    double
    go_fake_round (double x);

### go_fake_roundl ()

    long double
    go_fake_roundl (long double x);

### go_fake_trunc ()

    double
    go_fake_trunc (double x);

### go_fake_truncl ()

    long double
    go_fake_truncl (long double x);

### go_finite ()

    int
    go_finite (double x);

### go_finitel ()

    int
    go_finitel (long double x);

### go_log10l ()

    long double
    go_log10l (long double x);

### go_pow ()

    double
    go_pow (double x,
            double y);

### go_powl ()

    long double
    go_powl (long double x,
             long double y);

### go_pow10 ()

    double
    go_pow10 (int n);

Computes 10 to the power of `n` . This is fast and accurate (under the reasonable assumption that the compiler is accurate).

#### Parameters

n | exponent |

### go_pow10l ()

    long double
    go_pow10l (int n);

Computes 10 to the power of `n` . This is fast and accurate (under the reasonable assumption that the compiler is accurate).

#### Parameters

n | exponent |

### go_pow2 ()

    double
    go_pow2 (int n);

Computes 2 to the power of `n` . This is fast and accurate.

#### Parameters

n | exponent |

### go_pow2l ()

    long double
    go_pow2l (int n);

Computes 2 to the power of `n` . This is fast and accurate.

#### Parameters

n | exponent |

### go_rint ()

    double
    go_rint (double x);

### go_stern_brocot ()

    void
    go_stern_brocot (double val,
                     int max_denom,
                     int *res_num,
                     int *res_denom);

### go_strtod ()

    double
    go_strtod (const char *s,
               char **end);

#### Parameters

s | string to convert |
end | pointer to end of string. | [out][transfer none][optional]

#### Returns

the numeric value of the given string. Like strtod, but without hex notation and MS extensions. Unlike strtod, there is no need to reset errno before calling this.

### go_strtold ()

    long double
    go_strtold (const char *s,
                char **end);

#### Parameters

s | string to convert |
end | pointer to end of string. | [out][transfer none][optional]

#### Returns

the numeric value of the given string. Like strtold, but without hex notation and MS extensions. Unlike strtold, there is no need to reset errno before calling this.

### go_sub_epsilon ()

    double
    go_sub_epsilon (double x);

Returns the next-smaller representable value, except that zero and infinites are returned unchanged.

#### Parameters

x | a number |

### go_sub_epsilonl ()

    long double
    go_sub_epsilonl (long double x);

Returns the next-smaller representable value, except that zero and infinites are returned unchanged.

#### Parameters

x | a number |

### ldexpl ()

    long double
    ldexpl (long double x,
            int e);

### log1p ()

    double
    log1p (double x);

### modfl ()

    long double
    modfl (long double x,
           long double *iptr);

### strtold ()

    long double
    strtold (const char *Param1,
             char **Param2);

## Types and Values

### M_PI

    #define M_PI 3.14159265358979323846

### isnan

    #define isnan _isnan