- 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

# Raise a Laguerre series to a power in Python

To raise a Laguerre series to a power, use the polynomial.laguerre.lagpow() method in Python Numpy. The method returns the Laguerre series c raised to the power pow. The argument c is a sequence of coefficients ordered from low to high. i.e., [1,2,3] is the series P_0 + 2*P_1 + 3*P_2.

Returns the Laguerre series c raised to the power pow. The argument c is a sequence of coefficients ordered from low to high. i.e., [1,2,3] is the series P_0 + 2*P_1 + 3*P_2. The parameter, c is a 1-D array of Laguerre series coefficients ordered from low to high. The parameter, pow is a Power to which the series will be raised. The parameter, maxpower is the maximum power allowed. This is mainly to limit growth of the series to unmanageable size. Default is 16

## Steps

At first, import the required library −

import numpy as np from numpy.polynomial import laguerre as L

Create 1-D arrays of Laguerre series coefficients −

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

Display the coefficient array −

print("Our coefficient 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 raise a Laguerre series to a power, use the polynomial.laguerre.lagpow() method in Python Numpy −

print("\nResult....\n",L.lagpow(c, 3))

## Example

import numpy as np from numpy.polynomial import laguerre as L # Create 1-D arrays of Laguerre series coefficients c = np.array([1,2,3]) # Display the coefficient array print("Our coefficient 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 raise a Laguerre series to a power, use the polynomial.laguerre.lagpow() method in Python Numpy print("\nResult....\n",L.lagpow(c, 3))

## Output

Our coefficient Array... [1 2 3] Dimensions of our Array... 1 Datatype of our Array object... int64 Shape of our Array object... (3,) Result.... [ 150. -1116. 4590. -9672. 11934. -8100. 2430.]

- Related Questions & Answers
- Raise a Hermite series to a power in Python
- Raise a Legendre series to a power in Python
- Raise a Hermite_e series to a power in Python
- Raise a Chebyshev series to a power in Python
- Raise a polynomial to a power in Python
- Integrate a Laguerre series in Python
- Differentiate a Laguerre series in Python
- Convert a Laguerre series to a polynomial in Python
- Convert a polynomial to Laguerre series in Python
- Evaluate a Laguerre series at points x in Python
- Differentiate a Laguerre series with multidimensional coefficients in Python
- Integrate a Laguerre series over axis 0 in Python
- Generate a Laguerre series with given roots in Python
- Compute the roots of a Laguerre series in Python
- Integrate a Laguerre series over specific axis in Python