Ags.Complex

Fields

Name

Type

Access

Description

imag

float

r/w

real

float

r/w

Methods

class

alloc ()

copy ()

free ()

get_term ()

set_term (real, imag)

Details

class Ags.Complex
classmethod alloc()
Returns:

a new Ags.Complex-struct

Return type:

Ags.Complex

Allocate Ags.Complex-struct

New in version 3.0.0.

copy()
Returns:

a pointer of the new Ags.Complex-struct

Return type:

object or None

Create a copy of self.

New in version 3.0.0.

free()

Free the memory of self.

New in version 3.0.0.

get_term()
Returns:

real:

the real part

imag:

the imaginary part

Return type:

(real: float, imag: float)

Get complex number.

New in version 3.7.11.

set_term(real, imag)
Parameters:
  • real (float) – the real part

  • imag (float) – the imaginary part

Set complex number.

New in version 3.7.11.