Numpy 的 roots(~)
方法返回給定多項式係數的根。
參數
1. p
| array-like
多項式的係數,從最高次到最低次。
返回值
包含輸入多項式的根的 Numpy 數組。
例子
找到 的根:
np.roots([1, -5, 6])
array([3., 2.])
這意味著根是 x=3
和 x=2
,我們知道這是真的,因為:
相關用法
- Python NumPy roll方法用法及代碼示例
- Python NumPy rot90方法用法及代碼示例
- Python round()用法及代碼示例
- Python round方法用法及代碼示例
- Python random.getstate()用法及代碼示例
- Python random.triangular()用法及代碼示例
- Python Numpy recarray.tostring()用法及代碼示例
- Python reduce()用法及代碼示例
- Python response.status_code用法及代碼示例
- Python Numpy recarray.tobytes()用法及代碼示例
- Python string rpartition()用法及代碼示例
- Python numpy random.mtrand.RandomState.randn用法及代碼示例
- Python randint()用法及代碼示例
- Python numpy random.mtrand.RandomState.rand用法及代碼示例
- Python Numpy recarray.min()用法及代碼示例
- Python response.request用法及代碼示例
- Python repr方法用法及代碼示例
- Python Numpy recarray.cumprod()用法及代碼示例
- Python numpy random.mtrand.RandomState.pareto用法及代碼示例
- Python re.compile用法及代碼示例
- Python NumPy remainder方法用法及代碼示例
- Python Django re_path用法及代碼示例
- Python response.elapsed用法及代碼示例
- Python numpy random.mtrand.RandomState.standard_normal用法及代碼示例
- Python response.cookies用法及代碼示例
注:本文由純淨天空篩選整理自Isshin Inada大神的英文原創作品 NumPy | roots method。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。