บทนำ
เมธอด hermite_e.hermepow() ยกอนุกรม Hermite_e ขึ้นกำลังที่กำหนด
พารามิเตอร์
- c: สัมประสิทธิ์ 1 มิติ เรียงจากดีกรีต่ำไปสูง
- pow: กำลังที่ต้องการยก
- maxpower: กำลังสูงสุด (ค่าเริ่มต้น 16)
ตัวอย่าง: ยกกำลัง 3
import numpy as np
from numpy.polynomial import hermite_e as H
c = np.array([1, 2, 3])
print("Our coefficient 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", H.hermepow(c, 3))
ผลลัพธ์
Our coefficient Array... [1 2 3]
Dimensions of our Array... 1
Datatype of our Array object... int64
Shape of our Array object... (3,)
Result.... [ 355. 642. 1119. 476. 387. 54. 27.]
อนุกรม H₀ + 2H₁ + 3H₂ ยกกำลัง 3 ให้สัมประสิทธิ์ 7 ตัว (ดีกรี 0 ถึง 6)