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

# Class Fhorner

    object --+
             |
          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`: `__add__`, `__iadd__`, `__imul__`, `__isub__`, `__len__`, `__mul__`, `__str__`, `__sub__`, `copy`, `fadd`, `fadd_`, `fcopy`, `fmul`, `fsub`, `fsub_`, `fsum`, `fsum2_`, `fsum_` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__subclasshook__`

Class Variables
Inherited from `Fsum`: `_fsum2_`

Properties
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)). Parameters: `x` - Polynomial argument (`scalar`). `cs` - Polynomial coeffients (`scalar`[]). Raises: `OverflowError` - Partial `2sum` overflow. `TypeError` - Non-scalar `x`. `ValueError` - No `cs` coefficients or `x` is not finite. Overrides: object.__init__ See Also: Function fhorner and methods Fsum.fadd and Fsum.fmul.