Python | The numpy np.hermediv () method

NumPy | Python Methods and Functions

Using the np.hermediv() method, we can get the division of two series of hermiteE using np.hermediv () .

Syntax: np.hermediv (series1, series2)
Return: Return the division of two hermiteE series.

Example # 1:
In this example, we see that with np.hermediv () we we can get the division of two series of hermiteE using this method.

# numpy and hermediv imports

import numpy as np

from numpy.polynomial.hermite_e import hermediv

 

series1 < / code> = np.array ([ 1 , 2 , 3 , 4 ])

series2 = np.array ([ 10 , 11 , 12 , 13 ])

 
# using the np.hermediv () method

gfg = hermediv (series1, series2)

  

print (gfg) 

Output:

(array ([0.30769231]), array ([- 2.07692308, -1.38461538, -0.69230769]))

Example # 2:

# numpy and hermediv imports

import numpy as np

from numpy.polynomial.hermite_e import hermediv

 

series1 = np.array ([ 11 , 22 , 33 , 44 ])

series2 = np.array ([ 10 , 11 , 12 , 13 ])

 
# using the np.hermediv () method

gfg = hermediv (series1, series2)

  

print (gfg)

Output:

(array ([3.38461538]), array ([- 22.84615385, -15.23076923, -7.61538462]))





Get Solution for free from DataCamp guru