Complex_d.kl

Types

Complex_d (struct)

The Complex_d type represents a complex number.

/*
** Example: Complex_d
*/

Complex_d c(-4.1, 3.14);

Members

Float64 re  

Methods

  Complex_d ( in Complex_d other )
  Complex_d ( in Float64 re )
  Complex_d ( in Float64 re, in Float64 im )
  Complex_d ( in SInt32 re )
  Complex_d ()
Boolean almostEqual ? ( in Complex_d that )
Boolean almostEqual ? ( in Complex_d that, in Float64 precision )
Float64 angle ? ()
  appendDesc ? ( io String string )
Complex_d clone ? ()
Complex_d conj ? ()
Boolean equal ? ( in Complex_d that )
UInt32 hash ? ()
Complex_d inv ? ()
Boolean isAlmostZero ? ( in Float64 precision )
Boolean isAlmostZero ? ()
Boolean isZero ? ()
Float64 length ? ()
Float64 lengthSquared ? ()
Complex_d linearInterpolate ? ( in Complex_d that, in Float64 t )
Float64 norm ? ()
Float64 normSq ? ()
  normalize ! ()
Complex_d recip ? ()
Float64 setUnit ! ()
Complex_d unit ? ()
Complex_d unit_safe ? ()

Operators

  + Complex_d
  - Complex_d
Complex_d = ( Param other )

Functions

abs

Scalar abs ( in Complex z )

Return the absolute value of this complex number

Math_badDivisor

Boolean Math_badDivisor ( in Float32 s )

Returns true if a divisor is outside the safe range of Float32 divisor values

Math_reportBadDivisor

Math_reportBadDivisor ( in Float32 s, in String contextDesc )

Reports a Float32 bad divisor warning message

signum

Float64 signum ( in Float64 x )

sqrt

Complex_d sqrt ( in Complex_d z )

Return the square root of a complex number