Rational
- class pyarts.arts.Rational
Holds a rational number as two
Index
n / dWorkspace methods that can generate Rational
Workspace methods that require Rational
- __init__(*args, **kwargs)
Overloaded function.
__init__(self: pyarts.arts.Rational, n: int = 0, d: int = 1) -> None
Default rational
__init__(self: pyarts.arts.Rational, val: pyarts.arts.Rational) -> None
Copy instance
__init__(self: pyarts.arts.Rational, wsv: pyarts.arts.WorkspaceVariable) -> None
Automatic conversion from a workspace variable
__init__(self: pyarts.arts.Rational, arg0: pyarts.arts.String) -> None
From
str
__init__(self: pyarts.arts.Rational, arg0: float) -> None
From
float
Methods
__init__
(*args, **kwargs)Overloaded function.
fromxml
(file)Create
Rational
from filereadxml
(self, file)Read
Rational
from filesavexml
(self, file[, type, clobber])Saves
Rational
to fileAttributes
int
Denominatorint
Numerator