Differentiate a Legendre Series and Set the Derivatives using NumPy in Python
In this tutorial, we will discuss the differentiation of a Legendre series and set the derivatives using NumPy in Python. There is a method used to differentiate a Legendre series and select the derivatives using NumPy in Python from the NumPy library, the method name is numpy.polynomial.legendre.legder(). In the Legendre series, the coefficient is defined by 'c'. The 'c' is differed 't' times along with the axis are returned. Then we find a value. This value will be multiplied at each iteration by scl (Scl is a scaler quantity). The multiplication value is scl**m. Argument c is a coefficient of the Array. This ranges in degree between low to high along each axis; an example is [5,4,3]. An equation of series initializes this argument. The equation is - 5 *L 0 + 4*L 1 + 3*L 2. Consequently, [[3,1], [3,1]] indicates a series, which is 3 *L 0(x)*L 0(y) + 3*L 1(x)*L 0(y) + 1*L 0(x)*L 1(y) + 1*L 1(x)*L 1(y). If the axis is 0, then it represents the x-axis. Similarly, if the axis is 1, then it represents the y-axis. If the coefficient c is multidimensional, each variable will represent a different axis.
Syntax of the Legendre series, and set the derivatives using NumPy in Python
The syntax of the Legendre series and set of the derivatives using NumPy in Python is given below -
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