কম্পিউটার

পাইথনের শক্তিতে একটি হারমাইট_ই সিরিজ বাড়ান


একটি হারমাইট_ই সিরিজকে শক্তিতে বাড়াতে, PythonNumpy-এ polynomial.hermite.hermepow() পদ্ধতি ব্যবহার করুন। পদ্ধতিটি হারমাইট_ই সিরিজের শক্তি প্রদান করে। পাওয়ার পাওয়ারে উত্থিত হারমাইট_ই সিরিজ c ফিরিয়ে দেয়। আর্গুমেন্ট c হল নিম্ন থেকে উচ্চ পর্যন্ত ক্রমিক সহগগুলির একটি ক্রম। অর্থাৎ, [1,2,3] হল P_0 + 2*P_1 + 3*P_2 সিরিজ। প্যারামিটার, c হল হারমাইট_ই সিরিজের সহগগুলির একটি 1-D অ্যারে যা নিম্ন থেকে উচ্চ পর্যন্ত অর্ডার করা হয়েছে৷

প্যারামিটার, pow হল একটি পাওয়ার যার কাছে সিরিজটি উত্থাপিত হবে। পরামিতি, maxpower হল অনুমোদিত সর্বোচ্চ শক্তি। এটি মূলত সিরিজের বৃদ্ধিকে নিয়ন্ত্রণহীন আকারে সীমাবদ্ধ করার জন্য। ডিফল্ট 16.

পদক্ষেপ

প্রথমে, প্রয়োজনীয় লাইব্রেরি আমদানি করুন -

import numpy as np
from numpy.polynomial import hermite_e as H

Hermit_e সিরিজের সহগ −

এর 1-D অ্যারে তৈরি করুন
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)

একটি হারমাইট_ই সিরিজকে শক্তিতে বাড়াতে, PythonNumpy -

-এ polynomial.hermite.hermepow() পদ্ধতি ব্যবহার করুন।
print("\nResult....\n",H.hermepow(c, 3))

উদাহরণ

import numpy as np
from numpy.polynomial import hermite_e as H

# Create 1-D arrays of Hermite_e series coefficients
c = np.array([1,2,3])

# Display the coefficient array
print("Our coefficient 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 raise a Hermite_e series to a power, use the polynomial.hermite.hermepow() method in Python Numpy
# The method returns Hermite_e series of power.
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.]

  1. পাইথনের শক্তিতে একটি হারমাইট সিরিজ বাড়ান

  2. পাইথনে বহুমাত্রিক সহগ সহ একটি Hermit_e সিরিজের পার্থক্য করুন

  3. পাইথনে একটি হারমাইট_ই সিরিজের পার্থক্য করুন

  4. পাইথনে একটি পাওয়ারে একটি বহুপদ বাড়ান