#include "ruby/missing.h"#include <stdio.h>#include <math.h>#include <float.h>Go to the source code of this file.
Defines | |
| #define | isinf(x) (!_finite(x) && !_isnan(x)) |
| #define | finite(x) _finite(x) |
| #define | LOG_PI_OVER_2 0.572364942924700087071713675675 |
Functions | |
| static double | q_gamma (double, double, double) |
| static double | p_gamma (double a, double x, double loggamma_a) |
| double | erf (double x) |
| double | erfc (double x) |
| #define finite | ( | x | ) | _finite(x) |
Definition at line 20 of file erf.c.
Referenced by erf(), erfc(), and flo_is_finite_p().
| #define isinf | ( | x | ) | (!_finite(x) && !_isnan(x)) |
Definition at line 17 of file erf.c.
Referenced by atanh(), big_op(), BigMath_s_exp(), BigMath_s_log(), BSD_vfprintf(), c_valid_start_p(), c_virtual_sg(), dbl2big(), finite(), flo_cmp(), flo_is_finite_p(), flo_is_infinite_p(), flo_round(), flo_to_s(), float_denominator(), float_numerator(), float_value(), flodivmod(), generate_json_float(), guess_style(), m_julian_p(), m_proleptic_gregorian_p(), m_proleptic_julian_p(), math_atan2(), math_gamma(), math_lgamma(), nurat_div(), rand_range(), rb_big2dbl(), rb_big_cmp(), rb_big_eq(), rb_big_fdiv(), rb_str_format(), ruby_float_step(), ruby_hdtoa(), s_virtual_sg(), VpDtoV(), and w_float().
| #define LOG_PI_OVER_2 0.572364942924700087071713675675 |
| double erf | ( | double | x | ) |
Definition at line 71 of file erf.c.
References finite, isnan, LOG_PI_OVER_2, and p_gamma().
Referenced by math_erf().
| double erfc | ( | double | x | ) |
Definition at line 81 of file erf.c.
References finite, isnan, LOG_PI_OVER_2, p_gamma(), and q_gamma().
Referenced by math_erfc().
| static double p_gamma | ( | double | a, | |
| double | x, | |||
| double | loggamma_a | |||
| ) | [static] |
1.6.1