Thursday, October 9, 2025
HomeLanguagesPython | Numpy np.hermdiv() method

Python | Numpy np.hermdiv() method

With the help of np.hermdiv() method, we can get the division of two hermite series by using np.hermdiv() method.

Syntax : np.hermdiv(series1, series2)
Return : Return the coefficient of series after division.

Example #1 :
In this example we can see that by using np.hermdiv() method, we are able to get the coefficient of series after division of two hermite series by using this method.




# import numpy and hermdiv
import numpy as np
from numpy.polynomial.hermite import hermdiv
  
series1 = np.array([1, 2, 3, 4, 5])
series2 = np.array([6, 7, 8, 9, 10])
  
# using np.hermdiv() method
gfg = hermdiv(series1, series2)
  
print(gfg)


Output :

(array([0.5]), array([-2., -1.5, -1., -0.5]))

Example #2 :




# import numpy and hermdiv
import numpy as np
from numpy.polynomial.hermite import hermdiv
  
series1 = np.array([1, 2, 3])
series2 = np.array([1, 2, 3])
  
# using np.hermdiv() method
gfg = hermdiv(series1, series2)
  
print(gfg)


Output :

(array([1.]), array([0.]))

Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32342 POSTS0 COMMENTS
Milvus
87 POSTS0 COMMENTS
Nango Kala
6712 POSTS0 COMMENTS
Nicole Veronica
11875 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11937 POSTS0 COMMENTS
Shaida Kate Naidoo
6833 POSTS0 COMMENTS
Ted Musemwa
7092 POSTS0 COMMENTS
Thapelo Manthata
6786 POSTS0 COMMENTS
Umr Jansen
6789 POSTS0 COMMENTS