lisette-stdlib 0.2.13

Little language inspired by Rust that compiles to Go
Documentation
// Generated by Lisette bindgen
// Source: math/cmplx (Go stdlib)
// Go: 1.25.10
// Lisette: 0.2.1

/// Abs returns the absolute value (also called the modulus) of x.
pub fn Abs(x: complex128) -> float64

/// Acos returns the inverse cosine of x.
pub fn Acos(x: complex128) -> complex128

/// Acosh returns the inverse hyperbolic cosine of x.
pub fn Acosh(x: complex128) -> complex128

/// Asin returns the inverse sine of x.
pub fn Asin(x: complex128) -> complex128

/// Asinh returns the inverse hyperbolic sine of x.
pub fn Asinh(x: complex128) -> complex128

/// Atan returns the inverse tangent of x.
pub fn Atan(x: complex128) -> complex128

/// Atanh returns the inverse hyperbolic tangent of x.
pub fn Atanh(x: complex128) -> complex128

/// Conj returns the complex conjugate of x.
pub fn Conj(x: complex128) -> complex128

/// Cos returns the cosine of x.
pub fn Cos(x: complex128) -> complex128

/// Cosh returns the hyperbolic cosine of x.
pub fn Cosh(x: complex128) -> complex128

/// Cot returns the cotangent of x.
pub fn Cot(x: complex128) -> complex128

/// Exp returns e**x, the base-e exponential of x.
pub fn Exp(x: complex128) -> complex128

/// Inf returns a complex infinity, complex(+Inf, +Inf).
pub fn Inf() -> complex128

/// IsInf reports whether either real(x) or imag(x) is an infinity.
pub fn IsInf(x: complex128) -> bool

/// IsNaN reports whether either real(x) or imag(x) is NaN
/// and neither is an infinity.
pub fn IsNaN(x: complex128) -> bool

/// Log returns the natural logarithm of x.
pub fn Log(x: complex128) -> complex128

/// Log10 returns the decimal logarithm of x.
pub fn Log10(x: complex128) -> complex128

/// NaN returns a complex “not-a-number” value.
pub fn NaN() -> complex128

/// Phase returns the phase (also called the argument) of x.
/// The returned value is in the range [-Pi, Pi].
pub fn Phase(x: complex128) -> float64

/// Polar returns the absolute value r and phase θ of x,
/// such that x = r * e**θi.
/// The phase is in the range [-Pi, Pi].
pub fn Polar(x: complex128) -> (float64, float64)

/// Pow returns x**y, the base-x exponential of y.
/// For generalized compatibility with [math.Pow]:
/// 
/// 	Pow(0, ±0) returns 1+0i
/// 	Pow(0, c) for real(c)<0 returns Inf+0i if imag(c) is zero, otherwise Inf+Inf i.
pub fn Pow(x: complex128, y: complex128) -> complex128

/// Rect returns the complex number x with polar coordinates r, θ.
pub fn Rect(r: float64, θ: float64) -> complex128

/// Sin returns the sine of x.
pub fn Sin(x: complex128) -> complex128

/// Sinh returns the hyperbolic sine of x.
pub fn Sinh(x: complex128) -> complex128

/// Sqrt returns the square root of x.
/// The result r is chosen so that real(r) ≥ 0 and imag(r) has the same sign as imag(x).
pub fn Sqrt(x: complex128) -> complex128

/// Tan returns the tangent of x.
pub fn Tan(x: complex128) -> complex128

/// Tanh returns the hyperbolic tangent of x.
pub fn Tanh(x: complex128) -> complex128