|
Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
|
Internal header for Complex. More...
#include "ruby/internal/value.h"Go to the source code of this file.
Data Structures | |
| struct | RComplex |
Macros | |
| #define | RCOMPLEX(obj) ((struct RComplex *)(obj)) |
| #define | RCOMPLEX_SET_REAL(cmp, r) RB_OBJ_WRITE((cmp), &RCOMPLEX(cmp)->real, (r)) |
| #define | RCOMPLEX_SET_IMAG(cmp, i) RB_OBJ_WRITE((cmp), &RCOMPLEX(cmp)->imag, (i)) |
Functions | |
| VALUE | rb_dbl_complex_new_polar_pi (double abs, double ang) |
| st_index_t | rb_complex_hash (VALUE comp) |
Internal header for Complex.
Definition in file complex.h.
| #define RCOMPLEX_SET_IMAG | ( | cmp, | |
| i | |||
| ) | RB_OBJ_WRITE((cmp), &RCOMPLEX(cmp)->imag, (i)) |
| #define RCOMPLEX_SET_REAL | ( | cmp, | |
| r | |||
| ) | RB_OBJ_WRITE((cmp), &RCOMPLEX(cmp)->real, (r)) |
| st_index_t rb_complex_hash | ( | VALUE | comp | ) |
| VALUE rb_dbl_complex_new_polar_pi | ( | double | abs, |
| double | ang | ||
| ) |
Definition at line 669 of file complex.c.
References cospi, DBL2NUM, rb_complex_new(), and sinpi.
Referenced by rb_big_pow(), and rb_float_pow().