Legendre.trim()

numpy.polynomial.legendre.Legendre.trim

Legendre.trim(tol=0) [source]

Remove trailing coefficients

Remove trailing coefficients until a coefficient is reached whose absolute value greater than tol or the beginning of the series is reached. If all the coefficients would be removed the series is set to [0]. A new series instance is returned with the new coefficients. The current instance remains unchanged.

Parameters:

tol : non-negative number.

All trailing coefficients less than tol will be removed.

Returns:

new_series : series

Contains the new set of coefficients.

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部