- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies

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

# Differentiate a Hermite series and multiply each differentiation by a scalar in Python

To differentiate a Hermite series, use the hermite.hermder() method in Python. The 1st parameter, c is an array of Hermite series coefficients. If c is multidimensional the different axis correspond to different variables with the degree in each axis given by the corresponding index.

The 2nd parameter, m is the number of derivatives taken, must be non-negative. (Default: 1). The 3rd parameter, scl is a scalar. Each differentiation is multiplied by scl. The end result is multiplication by scl**m. This is for use in a linear change of variable. (Default: 1) The 4th parameter, axis is an Axis over which the derivative is taken. (Default: 0).

## Steps

At first, import the required library −

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

Create an array of coefficients −

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

Display the array −

print("Our Array...\n",c)

Check the Dimensions −

print("\nDimensions of our Array...\n",c.ndim)

Get the Datatype −

print("\nDatatype of our Array object...\n",c.dtype)

Get the Shape −

print("\nShape of our Array object...\n",c.shape)

To differentiate a Hermite series, use the hermite.hermder() method in Python −

print("\nResult...\n",H.hermder(c, scl = -1))

## Example

import numpy as np from numpy.polynomial import hermite as H # Create an array of coefficients c = np.array([1,2,3,4]) # Display the array print("Our Array...\n",c) # Check the Dimensions print("\nDimensions of our Array...\n",c.ndim) # Get the Datatype print("\nDatatype of our Array object...\n",c.dtype) # Get the Shape print("\nShape of our Array object...\n",c.shape) # To differentiate a Hermite series, use the hermite.hermder() method in Python print("\nResult...\n",H.hermder(c, scl = -1))

## Output

Our Array... [1 2 3 4] Dimensions of our Array... 1 Datatype of our Array object... int64 Shape of our Array object... (4,) Result... [ -4. -12. -24.]