Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Numpy exercise
  • pandas
  • Matplotlib
  • Data visulisation
  • EDA
  • Machin Learning
  • Deep Learning
  • NLP
  • Data science
  • ML Tutorial
  • Computer Vision
  • ML project
Open In App
Next Article:
Convert a polynomial to Hermite_e series using NumPy in Python
Next article icon

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.]

Next Article
Convert a polynomial to Hermite_e series using NumPy in Python

S

siddheshsagar
Improve
Article Tags :
  • Python
  • Python-numpy
  • Python numpy-polynomials
Practice Tags :
  • python

Similar Reads

    Convert a Polynomial to Hermite Series Using NumPy
    In this article, we will discuss how to convert a Polynomial to Hermite series using NumPy. Example: Polynomial: [4 2 3 6] Coefficients of the converted equivalent Hermite series : [5.5  5.5  0.75 0.75] To convert a polynomial to Hermite series we need to use numpy methods hermite.poly2herm(). We ca
    2 min read
    Convert a Hermite series to a polynomial in Python
    In this article, we will be looking at the step-wise procedure to convert a Hermite series to a polynomial in Python. NumPy.herm2poly method To convert a Hermite series to a polynomial, use the np.herm2poly() function from the Numpy package of python. Convert the given array representing the coeffic
    2 min read
    Add one Hermite series to another using NumPy in Python
    In this article, we will cover how to add one Hermite series to another using NumPy in Python. np.polynomial.hermite.hermadd method The numpy.polynomial.hermite.hermadd() method from the NumPy library is used to add one Hermite series to another. The sum of two Hermite series (c1 + c2) is returned.
    3 min read
    Multiply one Hermite series to another in Python using NumPy
    In this article, we are going to see how to multiply one Hermite series to another in Python Using NumPy. The NumPy polynomial.hermite.hermmul() is used to Multiply one Hermite series by another series. The product of two Hermite series c1 * c2 is returned. The arguments are sequences of coefficient
    2 min read
    Divide one Hermite series by another in Python using NumPy
    In this article, we are going to see how to divide one Hermite series by another in Python using NumPy. The numpy hermdiv() method helps us divide one Hermite series by another. The quotient and remainder of two Hermite series, c1 / c2, are returned. The arguments are a series of coefficients from l
    3 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences