Skip to content
Related Articles

Related Articles

Python | Numpy np.hermder() method
  • Last Updated : 06 Dec, 2019

With the help of np.hermder() method, we can differentiate hermite series by using np.hermder() method.

Syntax : np.hermder(series, m)
Return : Return the coefficient of differentiated series.

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

filter_none

edit
close

play_arrow

link
brightness_4
code

# import numpy and harmder
import numpy as np
from numpy.polynomial.hermite import hermder
  
series = np.array([2, 0.3, 4, 0.5, 6])
# using np.harmder() method
gfg = hermder(series, m = 1)
  
print(gfg)

chevron_right


Output :

[0.6 16. 3. 48.]



Example #2 :

filter_none

edit
close

play_arrow

link
brightness_4
code

# import numpy and harmder
import numpy as np
from numpy.polynomial.hermite import hermder
  
series = np.array([1, 2, 3, 4, 5])
# using np.harmder() method
gfg = hermder(series, m = 2)
  
print(gfg)

chevron_right


Output :

[24. 96. 240.]

Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.

To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :