เมธอด laguerre.lagder() หาอนุพันธ์ของอนุกรมลากูร์ร์ พร้อมคูณสเกลาร์ scl ในแต่ละรอบ
พารามิเตอร์:
c: อาร์เรย์係ณลากูร์ร์m: ลำดับอนุพันธ์ (ค่าเริ่มต้น 1)scl: ตัวคูณสเกลาร์ (ค่าเริ่มต้น 1)axis: แกนที่หาอนุพันธ์ (ค่าเริ่มต้น 0)
ขั้นตอน
import numpy as np
from numpy.polynomial import laguerre as L
c = np.array([1, 2, 3, 4])
print("Our Array...\n", c)
print("\nDimensions of our Array...\n", c.ndim)
print("\nDatatype of our Array object...\n", c.dtype)
print("\nShape of our Array object...\n", c.shape)
print("\nResult...\n", L.lagder(c, 2, scl=-1))
ตัวอย่างโค้ดสมบูรณ์
import numpy as np
from numpy.polynomial import laguerre as L
c = np.array([1, 2, 3, 4])
print("Our Array...\n", c)
print("\nDimensions of our Array...\n", c.ndim)
print("\nDatatype of our Array object...\n", c.dtype)
print("\nShape of our Array object...\n", c.shape)
print("\nResult...\n", L.lagder(c, 2, scl=-1))
ผลลัพธ์
Our Array... [1 2 3 4] Dimensions of our Array... 1 Datatype of our Array object... int64 Shape of our Array object... (4,) Result... [11. 4.]