本文簡要介紹 python 語言中  numpy.polynomial.legendre.leg2poly  的用法。
- 用法:- polynomial.legendre.leg2poly(c)
- 將勒讓德級數轉換為多項式。 - 將表示勒讓德級數的係數的數組(從最低度到最高排序)轉換為等效多項式(相對於 “standard” 基礎)的係數數組,從最低到最高排序。 - c: array_like
- 包含勒讓德級數係數的一維數組,從最低階項到最高階項排序。 
 
- pol: ndarray
- 一維數組,包含等效多項式(相對於 “standard” 基)的係數,從最低階項到最高階項排序。 
 
 - 參數:- 返回:- 注意:- 在多項式基組之間進行轉換的簡單方法是使用類實例的 convert 方法。 - 例子:- >>> from numpy import polynomial as P >>> c = P.Legendre(range(4)) >>> c Legendre([0., 1., 2., 3.], domain=[-1, 1], window=[-1, 1]) >>> p = c.convert(kind=P.Polynomial) >>> p Polynomial([-1. , -3.5, 3. , 7.5], domain=[-1., 1.], window=[-1., 1.]) >>> P.leg2poly(range(4)) array([-1. , -3.5, 3. , 7.5])
相關用法
- Python numpy legendre.legint用法及代碼示例
- Python numpy legendre.legmulx用法及代碼示例
- Python numpy legendre.legroots用法及代碼示例
- Python numpy legendre.legdomain用法及代碼示例
- Python numpy legendre.legfromroots用法及代碼示例
- Python numpy legendre.legone用法及代碼示例
- Python numpy legendre.legdiv用法及代碼示例
- Python numpy legendre.legmul用法及代碼示例
- Python numpy legendre.legadd用法及代碼示例
- Python numpy legendre.legline用法及代碼示例
- Python numpy legendre.legx用法及代碼示例
- Python numpy legendre.legtrim用法及代碼示例
- Python numpy legendre.legfit用法及代碼示例
- Python numpy legendre.legsub用法及代碼示例
- Python numpy legendre.legder用法及代碼示例
- Python numpy legendre.legzero用法及代碼示例
- Python numpy legendre.poly2leg用法及代碼示例
- Python numpy less用法及代碼示例
- Python numpy lexsort用法及代碼示例
- Python numpy left_shift用法及代碼示例
- Python numpy less_equal用法及代碼示例
- Python numpy linalg.svd用法及代碼示例
- Python numpy laguerre.lagone用法及代碼示例
- Python numpy linalg.pinv用法及代碼示例
- Python numpy logaddexp用法及代碼示例
注:本文由純淨天空篩選整理自numpy.org大神的英文原創作品 numpy.polynomial.legendre.leg2poly。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。
