Rational

class pyarts.arts.Rational

Holds a rational number as two Index n / d

Workspace methods that can generate Rational

Workspace methods that require Rational

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: pyarts.arts.Rational, n: int = 0, d: int = 1) -> None

Default rational

  1. __init__(self: pyarts.arts.Rational, val: pyarts.arts.Rational) -> None

Copy instance

  1. __init__(self: pyarts.arts.Rational, wsv: pyarts.arts.WorkspaceVariable) -> None

Automatic conversion from a workspace variable

  1. __init__(self: pyarts.arts.Rational, arg0: pyarts.arts.String) -> None

From str

  1. __init__(self: pyarts.arts.Rational, arg0: float) -> None

From float

Methods

__init__(*args, **kwargs)

Overloaded function.

fromxml(file)

Create Rational from file

readxml(self, file)

Read Rational from file

savexml(self, file[, type, clobber])

Saves Rational to file

Attributes

d

int Denominator

n

int Numerator