Ruby: missing/acosh.c File Reference

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

Macros | Functions
acosh.c File Reference
`#include <errno.h>`
`#include <float.h>`
`#include <math.h>`
`#include "ruby.h"`

Go to the source code of this file.

## Macros
#define | DBL_MANT_DIG 53 /* in this case, at least 12 digit precision */
#define | BIG_CRITERIA_BIT (1<<DBL_MANT_DIG/2)
#define | BIG_CRITERIA (1.0*(1<<DBL_MANT_DIG/4)*(1<<(DBL_MANT_DIG/2+1-DBL_MANT_DIG/4)))
#define | SMALL_CRITERIA_BIT (1<<(DBL_MANT_DIG/3))
#define | SMALL_CRITERIA (1.0*(1<<DBL_MANT_DIG/4)*(1<<(DBL_MANT_DIG/3+1-DBL_MANT_DIG/4)))

## Functions
double | acosh (double x)
double | asinh (double x)
double | atanh (double x)

## Macro Definition Documentation

## ◆ BIG_CRITERIA

#define BIG_CRITERIA (1.0*(1<<DBL_MANT_DIG/4)*(1<<(DBL_MANT_DIG/2+1-DBL_MANT_DIG/4)))

Definition at line 25 of file acosh.c.

## ◆ BIG_CRITERIA_BIT

#define BIG_CRITERIA_BIT (1<<DBL_MANT_DIG/2)

Definition at line 21 of file acosh.c.

## ◆ DBL_MANT_DIG

#define DBL_MANT_DIG 53 /* in this case, at least 12 digit precision */

Definition at line 19 of file acosh.c.

## ◆ SMALL_CRITERIA

#define SMALL_CRITERIA (1.0*(1<<DBL_MANT_DIG/4)*(1<<(DBL_MANT_DIG/3+1-DBL_MANT_DIG/4)))

Definition at line 31 of file acosh.c.

## ◆ SMALL_CRITERIA_BIT

#define SMALL_CRITERIA_BIT (1<<(DBL_MANT_DIG/3))

Definition at line 27 of file acosh.c.

## Function Documentation

## ◆ acosh()

double acosh | ( | double | x | ) |

Definition at line 36 of file acosh.c.

References BIG_CRITERIA.

## ◆ asinh()

double asinh | ( | double | x | ) |

Definition at line 52 of file acosh.c.

References BIG_CRITERIA, DBL_MANT_DIG, neg, and SMALL_CRITERIA.

## ◆ atanh()

double atanh | ( | double | x | ) |

Definition at line 75 of file acosh.c.

References isinf(), neg, and SMALL_CRITERIA.