Method: CCMath.acos
- Defined in:
- ext/ccmath/ccmath.c
.acos(z) ⇒ Object
300 301 302 303 304 305 306 307 308 |
# File 'ext/ccmath/ccmath.c', line 300 static VALUE ccmath_acos(VALUE obj, VALUE z) { EXTRACT_DBLS(z); if (z_imag == 0.0) return DBLS2COMP(acos(z_real), 0.0); return f_sub(DBL2NUM(M_PI / 2.0), ccmath_asin(obj, z)); } |