Convert a polynomial to Hermite_e series using NumPy in Python Last Updated : 03 Jun, 2022 Comments Improve Suggest changes Like Article Like Report In this article, we will cover how to convert a polynomial to Hermite_e series using NumPy in Python. hermite_e.poly2herme method We use the hermite_e.poly2herme() function present in the NumPy module of python to convert a polynomial to a Hermite series. Here we need to convert an array of polynomial coefficients, sorted from lowest to the highest degree, to an array of the equivalent Hermite series coefficients, which will be ordered from lowest to the highest degree. The coefficients of the corresponding Hermite series are returned in a 1-dimensional array using this approach. In the example below the polynomial coefficients are stored in the 'Arr', which is a 1-dimensional array. Syntax : numpy.polynomial.hermite_e.poly2herme(pol) Parameters: pol: It is a 1-dimensional array which contains the polynomial coefficients Return: It returns a 1-dimensional array which contains the coefficients of the equivalent Hermite series. Example 1: We can see in the following examples that by using the hermite_e.poly2herme() method, we can retrieve the coefficients of the hermite_e series from a polynomial. Python3 # importing numpy and Hermite_e libraries import numpy as np from numpy.polynomial import hermite_e # Creating an array 'Arr' using the # numpy.array() Arr = np.array([4, 7, 9, 10, 15]) # To convert a polynomial to a Hermite series, # use the hermite_e.poly2herme() function # present in Python Numpy module print(hermite_e.poly2herme(Arr)) Output : [58. 37. 99. 10. 15.]Example 2: We can see in the following examples that by using the hermite_e.poly2herme() method, we can retrieve the coefficients of the hermite_e series from a polynomial. Python3 # importing numpy and Hermite_e libraries import numpy as np from numpy.polynomial import hermite_e as H # Creating an array 'Arr' Arr1 = [2, 3, 5, 6, 9] # To convert a polynomial to a Hermite series, # use the hermite_e.poly2herme() function # present in Python Numpy module print(H.poly2herme(Arr1)) Output : [34. 21. 59. 6. 9.] Create Quiz Comment S siddheshsagar Follow 0 Improve S siddheshsagar Follow 0 Improve Article Tags : Python Python-numpy Python numpy-polynomials Explore Python FundamentalsPython Introduction 2 min read Input and Output in Python 4 min read Python Variables 4 min read Python Operators 4 min read Python Keywords 2 min read Python Data Types 8 min read Conditional Statements in Python 3 min read Loops in Python - For, While and Nested Loops 5 min read Python Functions 5 min read Recursion in Python 4 min read Python Lambda Functions 5 min read Python Data StructuresPython String 5 min read Python Lists 4 min read Python Tuples 4 min read Python Dictionary 3 min read Python Sets 6 min read Python Arrays 7 min read List Comprehension in Python 4 min read Advanced PythonPython OOP Concepts 11 min read Python Exception Handling 5 min read File Handling in Python 4 min read Python Database Tutorial 4 min read Python MongoDB Tutorial 3 min read Python MySQL 9 min read Python Packages 10 min read Python Modules 3 min read Python DSA Libraries 15 min read List of Python GUI Library and Packages 3 min read Data Science with PythonNumPy Tutorial - Python Library 3 min read Pandas Tutorial 4 min read Matplotlib Tutorial 5 min read Python Seaborn Tutorial 3 min read StatsModel Library - Tutorial 3 min read Learning Model Building in Scikit-learn 6 min read TensorFlow Tutorial 2 min read PyTorch Tutorial 6 min read Web Development with PythonFlask Tutorial 8 min read Django Tutorial | Learn Django Framework 7 min read Django ORM - Inserting, Updating & Deleting Data 4 min read Templating With Jinja2 in Flask 6 min read Django Templates 5 min read Build a REST API using Flask - Python 3 min read Building a Simple API with Django REST Framework 3 min read Python PracticePython Quiz 1 min read Python Coding Practice 1 min read Python Interview Questions and Answers 15+ min read Like