|
__init__(self,
*xs,
**name_NN)
New Fsum
for precision floating point running summation. |
|
|
|
__abs__(self)
Return this instance' absolute value as an Fsum. |
|
|
|
__add__(self,
other)
Return the sum self + other as an Fsum. |
|
|
|
__bool__(self)
Return True if this instance is non-zero. |
|
|
|
__ceil__(self)
Return this instance' math.ceil as int or
float . |
|
|
|
__divmod__(self,
other)
Return divmod(self, other) as 2-tuple
(quotient, remainder) , an int in Python 3+
or float in Python 2- and an Fsum. |
|
|
|
__eq__(self,
other)
Compare this with an other instance or scalar. |
|
|
|
__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)
Compare this with an other instance or scalar. |
|
|
|
__gt__(self,
other)
Compare this with an other instance or scalar. |
|
|
|
__hash__(self)
Return this instance' hash . |
|
|
|
__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 . |
|
|
|
__ipow__(self,
other,
*mod)
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)
Apply self /= other to this instance. |
|
|
|
__le__(self,
other)
Compare this with an other instance or scalar. |
|
|
|
__len__(self)
Return the total number of values accumulated
(int ). |
|
|
|
__lt__(self,
other)
Compare this with an other instance or scalar. |
|
|
|
|
|
|
|
|
|
__ne__(self,
other)
Compare this with an other instance or scalar. |
|
|
|
__neg__(self)
Return a copy of this instance, 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=None)
Not implemented. |
|
|
|
|
|
|
|
|
int
|
__sizeof__(self)
Return the current size of this instance in bytes . |
|
|
|
__str__(self)
Return the default str(self) . |
|
|
|
|
|
|
|
__trunc__(self)
Return this instance as an int . |
|
|
|
|
|
__idiv__(self,
other)
Apply self /= other to this instance. |
|
|
|
__long__(self)
Return this instance as an int . |
|
|
|
__nonzero__(self)
Return True if this instance is non-zero. |
|
|
|
|
|
|
|
copy(self,
deep=False,
name='')
Copy this instance, shallow or deep . |
|
|
|
divmod(self,
other)
Return divmod(self, other) as 2-tuple
(quotient, remainder) . |
|
|
|
fadd(self,
xs=( ) )
Add an iterable of scalar or Fsum
instances to this instance. |
|
|
|
fadd_(self,
*xs)
Add all positional scalar or Fsum
instances to this instance. |
|
|
|
fcopy(self,
deep=False,
name='')
Copy this instance, shallow or deep . |
|
|
|
fdiv(self,
other)
Apply self /= other to this instance. |
|
|
|
fdivmod(self,
other)
Return divmod(self, other) as 2-tuple
(quotient, remainder) , an int in Python 3+
or float in Python 2- and an Fsum. |
|
|
|
fint(self,
raiser=True,
name='')
Return this instance' current running sum as integer . |
|
|
|
fint2(self)
Return this instance' current running sum as int and the
integer residual. |
|
|
|
fmul(self,
other)
Apply self *= other to this instance. |
|
|
|
fover(self,
over)
Apply self /= over and summate. |
|
|
|
fpow(self,
other,
*mod)
Apply self **= other to this instance. |
|
|
|
fsub(self,
xs=( ) )
Subtract an iterable of scalar or Fsum
instances from this instance. |
|
|
|
fsub_(self,
*xs)
Subtract all positional scalar or Fsum
instances from this instance. |
|
|
|
fsum(self,
xs=( ) )
Add more scalar or Fsum
instances and summate. |
|
|
|
fsum_(self,
*xs)
Add all positional scalar or Fsum
instances and summate. |
|
|
|
fsum2(self,
xs=( ) )
Add more scalar or Fsum
instances and return the current precision running sum and the
residual . |
|
|
|
fsum2_(self,
*xs)
Add any positional scalar or Fsum
instances and return the precision running sum and the
differential . |
|
|
|
int_float(self,
raiser=False)
Return this instance' current running sum as int or
float . |
|
|
|
is_exact(self)
Is this instance' current running fsum considered to be
exact? (bool ). |
|
|
|
is_integer(self)
Is this instance' current running sum integer ?
(bool ). |
|
|
|
is_math_fsum(self)
Return True if functions fsum, fsum_,
fsum1
and fsum1_ are all based on Python's
math.fsum , False otherwise. |
|
|
|
pow(self,
x,
*mod)
Return self**x as Fsum. |
|
|
|
RESIDUAL(self,
*raiser)
Do or don't raise ResidualError exceptions for this instance,
overriding the default from env var
PYGEODESY_FSUM_RESIDUAL . |
|
|
|
signOf(self,
res=True)
Determine the sign of this instance. |
|
|
|
toRepr(self,
prec=6,
sep=', ',
fmt='g',
**unused)
Return this Fsum instance as representation. |
|
|
|
toStr(self,
prec=6,
sep=', ',
fmt='g',
**unused)
Return this Fsum instance as string. |
|
|
Inherited from named._Named :
__repr__ ,
attrs ,
classof ,
dup ,
rename ,
toStr2
Inherited from object :
__delattr__ ,
__getattribute__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__subclasshook__
|