Spec-Zone.ru › NumPy 1.11

numpy.polynomial.legendre.legline

numpy.polynomial.legendre.legline(off, scl) [source]

Легендре-ряд, график которого представляет прямую линию.

Параметры:

off, scl : скаляры

Указанная прямая задаётся выражением off + scl*x.

Возвращает:

y : ndarray

Представление модуля Legendre-ряда для off + scl*x.

См. также

polyline, chebline

Примеры

>>> import numpy.polynomial.legendre as L
>>> L.legline(3,2)
array([3, 2])
>>> L.legval(-3, L.legline(3,2)) # should be -3
-3.0

© 2008–2016 NumPy Developers
Licensed under the NumPy License.
https://docs.scipy.org/doc/numpy-1.11.0/reference/generated/numpy.polynomial.legendre.legline.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API