CMath is a library that provides trigonometric and transcendental functions for complex numbers.
To start using this library, simply:
require "cmath"
Square root of a negative number is a complex number.
CMath.sqrt(-9) #=> 0+3.0i
asinh!(z) Class Public methods Alias for:
log!(*args) Class Public methods Alias for:
sqrt!(z) Class Public methods Alias for:
cosh!(z) Class Public methods Alias for:
tanh!(z) Class Public methods Alias for:
atan!(z) Class Public methods Alias for:
atanh(z) Class Public methods returns the inverse hyperbolic tangent of z
atan2(y,x) Class Public methods returns the arc tangent of y divided
cbrt!(z) Class Public methods Alias for:
acos!(z) Class Public methods Alias for:
Page 1 of 4