Syed Abeed has Published 40 Articles

Python – scipy.interpolate.interp1d

Syed Abeed

Syed Abeed

Updated on 24-Dec-2021 10:25:39

5K+ Views

The interp1d() function of scipy.interpolate package is used to interpolate a 1-D function. It takes arrays of values such as x and y to approximate some function y = f(x) and then uses interpolation to find the value of new points.Syntaxscipy.interpolate.interp1d(x, y)where x is a 1-D array of real values ... Read More

Python – scipy.linalg.tanm()

Syed Abeed

Syed Abeed

Updated on 24-Dec-2021 10:12:31

221 Views

The tanm() function of scipy.linalg package is used to compute the tangent of an input matrix. This routine uses expm to compute the matrix exponentials.Syntaxscipy.linalg.tanm(x)where x is the input array or a square matrix. It returns the matrix tangent of x.Example 1Let us consider the following example −# Import the ... Read More

Python – scipy.linalg.cosm

Syed Abeed

Syed Abeed

Updated on 24-Dec-2021 10:10:45

215 Views

The cosm() function of scipy.linalg package is used to compute the cosine of an input matrix. This routine uses expm to compute the matrix exponentials.Syntaxscipy.linalg.cosm(x)where x is the input array.Example 1Let us consider the following example −# Import the required libraries from scipy import linalg import numpy as np ... Read More

Python – scipy.linalg.sinm()

Syed Abeed

Syed Abeed

Updated on 24-Dec-2021 10:08:49

228 Views

The sinm() function scipy.linalg package is used to compute the sine of an input matrix. This routine uses expm to compute the matrix exponentials.Syntaxscipy.linalg.sinm(x)where x is the inputer array.Example 1Let us consider the following example −# Import the required libraries from scipy from scipy import linalg import numpy as np ... Read More

Python – scipy.linalg.expm

Syed Abeed

Syed Abeed

Updated on 24-Dec-2021 10:07:01

2K+ Views

The expm() function of scipy.linalg package is used to compute the matrix exponential using Padé approximation. A Padé approximant is the "best" approximation of a function by a rational function of given order. Under this technique, the approximant's power series agrees with the power series of the function it is ... Read More

Python – scipy.linalg.sqrtm

Syed Abeed

Syed Abeed

Updated on 22-Dec-2021 10:07:13

1K+ Views

The sqrtm() function of scipy.linalg package can be used to find the square root of an input matrix.Syntaxscipy.linalg.sqrtm(x)Example 1Let us consider the following example −# Importing the required libraries from scipy from scipy import linalg import numpy as np # Define the input array x = np.array([[14 , 2] ... Read More

Python – scipy.linalg.norm

Syed Abeed

Syed Abeed

Updated on 22-Dec-2021 10:05:34

581 Views

The norm() function of the scipy.linalg package is used to return one of eight different matrix norms or one of an infinite number of vector norms.Syntaxscipy.linalg.norm(x)Where x is an input array or a square matrix.Example 1Let us consider the following example −# Importing the required libraries from scipy from scipy ... Read More

Python – scipy.linalg.inv

Syed Abeed

Syed Abeed

Updated on 22-Dec-2021 10:02:40

395 Views

The scipy.linalg package contains a of different functionalities that are used for Linear Algebra. One of them is the inv() function, which is used to find the inverse of a square matrix.Syntaxscipy.linalg.inv(x)Where x is a square matrix.Example 1Let us consider the following example −# Import the required libraries from scipy ... Read More

Python – scipy.linalg.det

Syed Abeed

Syed Abeed

Updated on 22-Dec-2021 09:59:56

316 Views

The scipy.linalg package contains a set of different functionalities that are used for Linear Algebra. One of them is the det() function. This function is used to find the determinant of a two-dimensional matrix.Syntaxscipy.linalg.det(x)Where x is a square matrix.Example 1Let us consider the following example −# Importing the required libraries ... Read More

Python – scipy.special.logsumexp

Syed Abeed

Syed Abeed

Updated on 22-Dec-2021 09:54:51

2K+ Views

The scipy.special package contains a set of different functionalities that are used for mathematical physics. One of them is the logsumexp() function. This function is used to compute the log of the sum of exponentials of input elements. Let us take a couple of examples and see how to use ... Read More

Advertisements