Differentiate a Legendre Series with multidimensional coefficients in Python
The Python Legendre module offers several functions, such as a ledger, that can be used to conduct mathematical and calculus operations on the Legendre series. It is one of the features that the Legendre class offers. The following is a list of the ledger method's syntax. This technique is used to create the Legendre series and is available in the Python NumPy module. It returns a multidimensional coefficient array.
Return: Legendre series
Use Python's polynomial.laguerre.ledger() method to distinguish a Legendre series. The returned values are the Legendre series coefficients, differentiated c times along the axis. At each repetition, the result is multiplied by scl. Legendre module provides operations like arithmetic and calculus to the ledger to perform.
An array of Legendre series coefficients makes up the first parameter, c. If c is multidimensional, then the associated index determines each axis' degree, and a different set of axes represents each axis' distinct variables. The second parameter, m, which represents how many derivatives were used, must not be negative. (Preset: 1). A scalar is the third parameter, Scl. SCL is used to multiply each differentiation. Scl**m multiplication is the result. This is for use when changing a variable linearly. (Preset: 1). The derivative is taken over the axis represented by the fourth parameter, the axis. (Default:0).
Step 1: Initially, we import the required libraries-
Step 2: Creation of a multidimensional array of coef-
Step 3: Displaying of array
Step 4: Dimensions checking-
Step 5: Getting Datatype-
Step 6: Getting Shape-
Use Python's polynomial. Laguerre.ledger () method to distinguish a Legendre series. The returned values are the Legendre series coefficients, differentiated c times along the axis. The result is multiplied by scl at each iteration.
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week