Package pygeodesy :: Module fmath :: Class Fhorner |
[frames] | no frames]

# Class Fhorner

      object --+
               |
    named._Named --+
                   |
                Fsum --+
                       |
                      Fhorner

Precision polynomial evaluation using the Horner form.

Instance Methods
__init__(self, x, *cs) New Fhorner evaluation of the polynomial sum(cs[i] * x**i for i=0..len(cs)). |
Inherited from `Fsum`: `__abs__`, `__add__`, `__bool__`, `__ceil__`, `__div__`, `__divmod__`, `__eq__`, `__float__`, `__floor__`, `__floordiv__`, `__format__`, `__ge__`, `__gt__`, `__hash__`, `__iadd__`, `__idiv__`, `__imatmul__`, `__imul__`, `__int__`, `__isub__`, `__itruediv__`, `__le__`, `__len__`, `__long__`, `__lt__`, `__matmul__`, `__mod__`, `__mul__`, `__ne__`, `__neg__`, `__nonzero__`, `__pos__`, `__pow__`, `__radd__`, `__rdivmod__`, `__rfloordiv__`, `__rmatmul__`, `__rmod__`, `__rmul__`, `__round__`, `__rpow__`, `__rsub__`, `__rtruediv__`, `__sizeof__`, `__str__`, `__sub__`, `__truediv__`, `__trunc__`, `copy`, `fadd`, `fadd_`, `fcopy`, `fdiv`, `fmul`, `fsub`, `fsub_`, `fsum`, `fsum2_`, `fsum_`, `is_integer` Inherited from `named._Named`: `_DOT_`, `__repr__`, `attrs`, `classof`, `dup`, `rename`, `toRepr`, `toStr`, `toStr2` Inherited from `object`: `__delattr__`, `__getattribute__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__subclasshook__`

Class Variables
Inherited from `Fsum`: `_fsum2_`

Properties
Inherited from `Fsum`: `imag`, `real` Inherited from `named._Named`: `classname`, `classnaming`, `name`, `named`, `named2`, `named3`, `named4` Inherited from `object`: `__class__`

Method Details

### __init__ (self, x, *cs) (Constructor) |
New Fhorner evaluation of the polynomial sum(cs[i] * x**i for i=0..len(cs)). Arguments: `x` - Polynomial argument (`scalar`). `cs` - Polynomial coeffients (`scalar`[]). Raises: `OverflowError` - Partial `2sum` overflow. `TypeError` - Non-scalar `x`. `ValueError` - Non-finite `x`. Overrides: object.__init__ See Also: Function fhorner and methods Fsum.fadd and Fsum.fmul.