Python | Numpy np.hermmul() method (original) (raw)
Last Updated : 06 Dec, 2019
With the help of **np.hermmul()**
method, we can get the multiplication of two hermite series by using np.hermmul()
method.
Syntax :
np.hermmul(series1, series2)
Return : Return the coefficient of series after multiplication.
Example #1 :
In this example we can see that by using np.hermmul()
method, we are able to get the coefficient of series after multiplication of two hermite series by using this method.
import
numpy as np
from
numpy.polynomial.hermite
import
hermmul
series1
=
np.array([
1
,
2
,
3
,
4
,
5
])
series2
=
np.array([
6
,
7
,
8
,
9
,
10
])
gfg
=
hermmul(series1, series2)
print
(gfg)
Output :
[21154. 17903. 44860. 13458. 16278. 2154. 1706. 85. 50.]
Example #2 :
import
numpy as np
from
numpy.polynomial.hermite
import
hermmul
series1
=
np.array([
1
,
2
,
3
])
series2
=
np.array([
1
,
2
,
3
])
gfg
=
hermmul(series1, series2)
print
(gfg)
Output :
[81. 52. 82. 12. 9.]
Similar Reads
- Python | Numpy np.hermmulx() method With the help of np.hermmulx() method, we can get the multiplication of hermite series with x by using np.hermmulx() method, where x is an independent variable. Syntax : np.hermmulx(series) Return : Return the coefficient of series after multiplication. Example #1 : In this example we can see that b 1 min read
- Python | Numpy np.hermemul() method With the help of np.hermemul() method, we can get the multiplication of two hermiteE series by using np.hermemul() method. Syntax : np.hermemul(series1, series2) Return : Return the multiplication of two hermiteE series. Example #1 : In this example we can see that by using np.hermemul() method, we 1 min read
- Python | Numpy np.hermemulx() method With the help of np.hermemulx() method, we can get the multiplication of hermiteE series with independent variable x by using np.hermemulx() method. Syntax : np.hermemulx(series) Return : Return the multiplication of hermiteE series with x. Example #1 : In this example we can see that by using np.he 1 min read
- Python | Numpy np.hermx() method With the help of np.hermx() method, we can get the filter having value array([0, 0.5]) in hermite series by using np.hermx() method. Syntax : np.hermx Return : Return filter of array([0, 0.5]) Example #1 : In this example we can see that by using np.hermx() method, we are able to get the filter of a 1 min read
- Python | Numpy np.hermeval() method With the help of np.hermeval() method, we can evaluate the hermite series on x, where s is defined in the np.hermeval() method. Syntax : np.hermeval(x, series) Return : Return the evaluated hermite series. Example #1 : In this example we can see that by using np.hermeval() method, we are able to eva 1 min read
- Python | Numpy np.hermex() method With the help of np.hermex() method, we can get the filter having value array([0, 1]) in hermiteE series by using np.hermex() method. Syntax : np.hermex Return : Return filter of array([0, 1]) Example #1 : In this example we can see that by using np.hermex() method, we are able to get the filter of 1 min read
- Python | Numpy np.hermline() method With the help of np.hermline() method, we can get the line specified by hermite series by using np.hermline() method. Syntax : np.hermline(off, scl) Return : Return the hermite series for off + scl*x Example #1 : In this example we can see that by using np.hermline() method, we are able to get the l 1 min read
- Python | Numpy np.hermone() method With the help of np.hermone() method, we can use hermone instead of np.ones by using np.hermone() method. Syntax : np.hermone() Return : Return array([1]) Example #1 : In this example we can see that by using np.hermone() method, we are able to get the functionality of np.ones as same as this method 1 min read
- Python | Numpy np.hermgauss() method With the help of np.hermgauss() method, we can get the quadrature value of gaussian hermite by using np.hermgauss() method. Syntax : np.hermgauss(degree) Return : Return the quadrature of gaussian hermite. Example #1 : In this example we can see that by using np.hermgauss() method, we are able to ge 1 min read
- Python | Numpy np.hermeline() method With the help of np.hermeline() method, we can get the line specified by hermiteE series by using np.hermeline() method. Syntax : np.hermeline(off, scl) Return : Return the hermiteE series for off + scl*x Example #1 : In this example we can see that by using np.hermeline() method, we are able to get 1 min read