借助sympy.series()方法,我們可以通過使用以下方法找到一係列數學函數和三角表達式sympy.series()方法。
用法: sympy.series()
返回:返回一係列函數。
範例1:
在這個例子中,我們可以通過使用sympy.series()方法,我們能夠找到一係列三角函數。
# import sympy 
from sympy import * 
  
x, y = symbols('x y') 
  
# Use sympy.series() method 
gfg = cos(x).series() 
    
print(gfg)輸出:
1 - x**2/2 + x**4/24 + O(x**6)
範例2:
# import sympy 
from sympy import * 
  
x, y = symbols('x y') 
  
# Use sympy.series() method 
gfg = tan(x).series() 
    
print(gfg)輸出:
x + x**3/3 + 2*x**5/15 + O(x**6)
相關用法
- Python os.dup()用法及代碼示例
 - Python set()用法及代碼示例
 - Python next()用法及代碼示例
 - Python os.get_blocking()用法及代碼示例
 - Python sympy.apart()用法及代碼示例
 - Python sympy.nC()用法及代碼示例
 - Python os.set_blocking()用法及代碼示例
 - Python os.getcwd()用法及代碼示例
 - Python os.access()用法及代碼示例
 - Python dict pop()用法及代碼示例
 - Python sympy.Add()用法及代碼示例
 - Python sympy.nP()用法及代碼示例
 
注:本文由純淨天空篩選整理自Jitender_1998大神的英文原創作品 Python | sympy.series() method。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。
