- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

# Multiply a Hermite series by an independent variable in Python

To multiply the Hermite series by x, where x is the independent variable, use the polynomial.hermite.hermmulx() method in Python Numpy. The method returns an array representing the result of the multiplication. The parameter, c is a 1-D array of Hermite series coefficients ordered from low to high.

## Steps

At first, import the required library −

import numpy as np from numpy.polynomial import hermite as H

Create an array −

c = np.array([1, 2, 3])

Display the array −

print("Our Array...

",c)

Check the Dimensions −

print("

Dimensions of our Array...

",c.ndim)

Get the Datatype −

print("

Datatype of our Array object...

",c.dtype)

Get the Shape −

print("

Shape of our Array object...

",c.shape)

To multiply the Hermite series by x, where x is the independent variable, use the polynomial.hermite.hermmulx() method −

print("

Result....

",H.hermmulx(c))

## Example

import numpy as np from numpy.polynomial import hermite as H # Create an array c = np.array([1, 2, 3]) # Display the array print("Our Array...

",c) # Check the Dimensions print("

Dimensions of our Array...

",c.ndim) # Get the Datatype print("

Datatype of our Array object...

",c.dtype) # Get the Shape print("

Shape of our Array object...

",c.shape) # To multiply the Hermite series by x, where x is the independent variable, use the polynomial.hermite.hermmulx() method in Python Numpy print("

Result....

",H.hermmulx(c))

## Output

Our Array... [1 2 3] Dimensions of our Array... 1 Datatype of our Array object... int64 Shape of our Array object... (3,) Result.... [2. 6.5 1. 1.5]

- Related Questions & Answers
- Multiply a Chebyshev series by an independent variable in Python
- Multiply a Laguerre series by an independent variable in Python
- Multiply a Legendre series by an independent variable in Python
- Multiply a Hermite_e series by an independent variable in Python
- Differentiate a Hermite series and multiply each differentiation by a scalar in Python
- Multiply one Hermite series to another in Python
- Differentiate a Hermite series, set the derivatives and multiply each differentiation by a scalar in Python
- Divide one Hermite series by another in Python
- Integrate a Hermite series and multiply the result by a scalar before the integration constant is added in Python
- Differentiate a Hermite series in Python
- Integrate a Hermite series in Python
- Convert a polynomial to Hermite series in Python
- Differentiate a Laguerre series and multiply each differentiation by a scalar in Python
- Differentiate a Chebyshev series and multiply each differentiation by a scalar in Python
- Differentiate a Legendre series and multiply each differentiation by a scalar in Python

Advertisements