numpy.polynomial.chebyshev.Chebyshev.interpolate#
方法
- classmethod polynomial.chebyshev.Chebyshev.interpolate(func, deg, domain=None, args=())[source]#
在第一類切比雪夫點內插函數。
傳回在第一類切比雪夫點內插 func 的級數,並縮放和平移至
domain
。當函數在定義域內連續時,產生的級數趨近於 func 的最小最大近似值。- 參數:
- func函數
要內插的函數。它必須是單變數函數,形式為
f(x, a, b, c...)
,其中a, b, c...
是在 args 參數中傳遞的額外引數。- deg整數
內插多項式的次數。
- domain{None, [beg, end]}, 選填
func 內插的定義域。預設值為 None,在這種情況下,定義域為 [-1, 1]。
- argstuple, 選填
要在函數呼叫中使用的額外引數。預設值為沒有額外引數。
- 傳回值:
- polynomialChebyshev 實例
內插 Chebyshev 實例。
註解
有關更多詳細資訊,請參閱 numpy.polynomial.chebinterpolate。