|
__init__(self,
*xs,
**name_f2product_nonfinites_RESIDUAL)
New Fsum. |
|
|
|
__abs__(self)
Return abs(self) as an Fsum. |
|
|
|
|
|
__bool__(self)
Return bool(self) , True iff
residual is zero. |
|
|
|
__call__(self,
other,
**up)
Reset this Fsum to other , default
up=True . |
|
|
|
__ceil__(self)
Return this instance' math.ceil as int or
float . |
|
|
|
__cmp__(self,
other)
Compare this with an other instance or scalar , Python
2-. |
|
|
|
__divmod__(self,
other,
**raiser_RESIDUAL)
Return divmod(self, other) as a DivMod2Tuple with quotient div an
int in Python 3+ or float in Python 2- and
remainder mod an Fsum
instance. |
|
|
|
__eq__(self,
other)
Return (self == other) as
bool where other is
scalar , an other Fsum or Fsum2Tuple. |
|
|
|
__float__(self)
Return this instance' current, precision running sum as
float . |
|
|
|
__floor__(self)
Return this instance' math.floor as int or
float . |
|
|
|
|
|
|
|
__ge__(self,
other)
Return (self >= other) , see
__eq__ . |
|
|
|
__gt__(self,
other)
Return (self > other) , see
__eq__ . |
|
|
|
__hash__(self)
Return hash(self) as float . |
|
|
|
__iadd__(self,
other)
Apply self += other to this instance. |
|
|
|
__ifloordiv__(self,
other)
Apply self //= other to this instance. |
|
|
|
|
|
__imod__(self,
other)
Apply self %= other to this instance. |
|
|
|
__imul__(self,
other)
Apply self *= other to this instance. |
|
|
|
__int__(self)
Return this instance as an int . |
|
|
|
__invert__(self)
Not implemented. |
|
|
|
__ipow__(self,
other,
*mod,
**raiser_RESIDUAL)
Apply self **= other to this instance. |
|
|
|
__isub__(self,
other)
Apply self -= other to this instance. |
|
|
|
__iter__(self)
Return an iter ator over a partials
duplicate. |
|
|
|
__itruediv__(self,
other,
**raiser_RESIDUAL)
Apply self /= other to this instance. |
|
|
|
__le__(self,
other)
Return (self <= other) , see
__eq__ . |
|
|
|
__len__(self)
Return the number of values accumulated (int ). |
|
|
|
__lt__(self,
other)
Return (self < other) , see
__eq__ . |
|
|
|
|
|
|
|
|
|
__ne__(self,
other)
Return (self != other) , see
__eq__ . |
|
|
|
__neg__(self)
Return copy(self) , negated. |
|
|
|
__pos__(self)
Return this instance as-is, like float.__pos__() . |
|
|
|
__pow__(self,
other,
*mod)
Return self**other as an Fsum. |
|
|
|
|
|
__rdivmod__(self,
other)
Return divmod(other, self) as 2-tuple
(quotient, remainder) . |
|
|
|
|
|
|
|
|
|
|
|
__round__(self,
*ndigits)
Return round(self, *ndigits as an Fsum. |
|
|
|
|
|
|
|
|
|
__str__(self)
Return the default str(self) . |
|
|
|
|
|
__truediv__(self,
other,
**raiser_RESIDUAL)
Return self / other as an Fsum. |
|
|
|
__trunc__(self)
Return this instance as an int . |
|
|
|
__div__(self,
other,
**raiser_RESIDUAL)
Return self / other as an Fsum. |
|
|
|
__idiv__(self,
other,
**raiser_RESIDUAL)
Apply self /= other to this instance. |
|
|
|
__long__(self)
Return this instance as an int . |
|
|
|
__nonzero__(self)
Return bool(self) , True iff
residual is zero. |
|
|
|
__rdiv__(self,
other,
**raiser_RESIDUAL)
Return other / self as an Fsum. |
|
|
|
|
|
cmp(self,
other)
Compare this with an other instance or scalar , Python
2-. |
|
|
|
copy(self,
deep=False,
**name)
Copy this instance, shallow or deep . |
|
|
|
divmod(self,
other,
**raiser_RESIDUAL)
Return divmod(self, other) as a DivMod2Tuple with quotient div an
int in Python 3+ or float in Python 2- and
remainder mod an Fsum
instance. |
|
|
|
fadd(self,
xs=( ) )
Add an iterable's items to this instance. |
|
|
|
fadd_(self,
*xs)
Add all positional items to this instance. |
|
|
|
fcopy(self,
deep=False,
**name)
Copy this instance, shallow or deep . |
|
|
|
fdiv(self,
other,
**raiser_RESIDUAL)
Apply self /= other to this instance. |
|
|
|
fdivmod(self,
other,
**raiser_RESIDUAL)
Return divmod(self, other) as a DivMod2Tuple with quotient div an
int in Python 3+ or float in Python 2- and
remainder mod an Fsum
instance. |
|
|
|
fint(self,
name='',
**raiser_RESIDUAL)
Return this instance' current running sum as integer . |
|
|
|
fint2(self,
**name)
Return this instance' current running sum as int and the
integer residual. |
|
|
|
fma(self,
other1,
other2,
**nonfinites)
Fused-multiply-add self *= other1; self +=
other2 . |
|
|
|
fmul(self,
other)
Apply self *= other to this instance. |
|
|
|
f2mul(self,
*others,
**raiser)
DEPRECATED on 2024.09.13, use method f2mul_. |
|
|
|
f2mul_(self,
*others,
**nonfinites)
Return self * other * other ... for
all others using cascaded, accurate
multiplication like with f2product set to True . |
|
|
|
fover(self,
over,
**raiser_RESIDUAL)
Apply self /= over and summate. |
|
|
|
fpow(self,
other,
*mod,
**raiser_RESIDUAL)
Apply self **= other to this instance. |
|
|
|
f2product(self,
*two)
Get and set accurate TwoProduct multiplication for this Fsum,
overriding the f2product default. |
|
|
|
fset_(self,
*xs)
Apply self.partials = Fsum(*xs).partials . |
|
|
|
fsub(self,
xs=( ) )
Subtract an iterable's items from this instance. |
|
|
|
fsub_(self,
*xs)
Subtract all positional items from this instance. |
|
|
|
fsum(self,
xs=( ) )
Add an iterable's items, summate and return the current precision
running sum. |
|
|
|
fsum_(self,
*xs)
Add any positional items, summate and return the current precision
running sum. |
|
|
|
|
|
|
|
fsum2(self,
xs=( ) ,
**name)
Add an iterable's items, summate and return the current precision
running sum and the residual . |
|
|
|
fsum2_(self,
*xs)
Add any positional items, summate and return the current precision
running sum and the differential. |
|
|
|
|
|
|
|
|
|
int_float(self,
**raiser_RESIDUAL)
Return this instance' current running sum as int or
float . |
|
|
|
is_exact(self)
Is this instance' running fsum considered to be exact?
(bool ), True only if the residual is
INT0. |
|
|
|
is_finite(self)
Is this instance finite ? (bool ). |
|
|
|
is_integer(self)
Is this instance' running sum integer ?
(bool ). |
|
|
|
|
|
|
|
is_scalar(self,
**raiser_RESIDUAL)
Is this instance' running sum scalar with 0
residual or with a residual ratio not exceeding the RESIDUAL
threshold? |
|
|
|
nonfinites(self,
*OK)
Handle non-finite float s as inf ,
INF , NINF , nan and
NAN for this Fsum or throw OverflowError
respectively ValueError exceptions, overriding the nonfiniterrors default. |
|
|
|
pow(self,
x,
*mod,
**raiser_RESIDUAL)
Return self**x as Fsum. |
|
|
|
rdiv(self,
other,
**raiser_RESIDUAL)
Return other / self as an Fsum. |
|
|
|
RESIDUAL(self,
*threshold)
Get and set this instance' ratio for raising ResidualErrors, overriding the default from env
variable PYGEODESY_FSUM_RESIDUAL . |
|
|
|
root(self,
root,
**raiser_RESIDUAL)
Return self**(1 / root) as Fsum. |
|
|
|
signOf(self,
res=True)
Determine the sign of this instance. |
|
|
|
toRepr(self,
**lenc_prec_sep_fmt)
Return this Fsum instance as representation. |
|
|
|
toStr(self,
lenc=True,
**prec_sep_fmt)
Return this Fsum instance as string. |
|
|
Inherited from named._Named :
__repr__ ,
attrs ,
classof ,
dup ,
methodname ,
rename ,
renamed ,
toStr2
Inherited from object :
__delattr__ ,
__getattribute__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|