本文簡要介紹 python 語言中 numpy.polynomial.legendre.legadd
的用法。
用法:
polynomial.legendre.legadd(c1, c2)
將一個勒讓德係列添加到另一個係列中。
返回兩個勒讓德級數的和c1+c2。參數是從最低階項到最高階項排序的係數序列,即 [1,2,3] 表示該序列
P_0 + 2*P_1 + 3*P_2
.- c1, c2: array_like
勒讓德級數係數的一維數組從低到高排序。
- out: ndarray
表示它們總和的勒讓德級數的數組。
參數:
返回:
注意:
與乘法、除法等不同,兩個勒讓德級數的和是勒讓德級數(不必將結果“reproject” 放到基組上)所以加法,就像“standard” 多項式的加法一樣,隻是“component-wise.”
例子:
>>> from numpy.polynomial import legendre as L >>> c1 = (1,2,3) >>> c2 = (3,2,1) >>> L.legadd(c1,c2) array([4., 4., 4.])
相關用法
- Python numpy legendre.legint用法及代碼示例
- Python numpy legendre.legmulx用法及代碼示例
- Python numpy legendre.legroots用法及代碼示例
- Python numpy legendre.legdomain用法及代碼示例
- Python numpy legendre.legfromroots用法及代碼示例
- Python numpy legendre.leg2poly用法及代碼示例
- Python numpy legendre.legone用法及代碼示例
- Python numpy legendre.legdiv用法及代碼示例
- Python numpy legendre.legmul用法及代碼示例
- 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.legadd。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。