Hermite_e श्रृंखला को x से गुणा करने के लिए, जहां x स्वतंत्र चर है, Python Numpy में thepolynomial.hermite.hermemulx() विधि का उपयोग करें। विधि गुणन के परिणाम का प्रतिनिधित्व करने वाली एक सरणी देता है। पैरामीटर, c, Hermite_e श्रृंखला गुणांकों की 1-डी सरणी है जिसे निम्न से उच्च तक क्रमित किया गया है।
कदम
सबसे पहले, आवश्यक पुस्तकालय आयात करें -
import numpy as np from numpy.polynomial import hermite_e as H
एक सरणी बनाएं -
c = np.array([1, 2, 3])
सरणी प्रदर्शित करें -
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) Hermite_e श्रृंखला को x से गुणा करने के लिए, जहां x स्वतंत्र चर है, thepolynomial.hermite.hermemulx() विधि का उपयोग करें -
print("\nResult....\n",H.hermemulx(c)) उदाहरण
import numpy as np
from numpy.polynomial import hermite_e as H
# Create an array
c = np.array([1, 2, 3])
# Display the array
print("Our Array...\n",c)
# Check the Dimensions
print("\nDimensions of our Array...\n",c.ndim)
# Get the Datatype
print("\nDatatype of our Array object...\n",c.dtype)
# Get the Shape
print("\nShape of our Array object...\n",c.shape)
# To multiply the Hermite_e series by x, where x is the independent variable, use the polynomial.hermite.hermemulx() method in Python Numpy
print("\nResult....\n",H.hermemulx(c)) आउटपुट
Our Array... [1 2 3] Dimensions of our Array... 1 Datatype of our Array object... int64 Shape of our Array object... (3,) Result.... [2. 7. 2. 3.]