Skip to content

Tag Archives: Python numpy-Mathematical Function

In this article, we will learn how to compute derivatives using NumPy. Generally, NumPy does not provide any robust function to compute the derivatives of… Read More
NumPy is an open-source Python library for performing array computing (matrix operations). It is a wrapper around the library implemented in C and used for… Read More
In this article, we will create a list of uniformly spaced numbers using a logarithmic scale. It means on a log scale difference between two… Read More function return the differences between consecutive elements of an array. Syntax :, to_end = None, to_begin = None)  Parameters : arr : [array_like] Input… Read More
In NumPy, we can round array elements to the given number of decimals with the help of round().  Syntax: np.round(a, decimals=0, out=None) The first parameter… Read More
True Division in Python3 returns a floating result containing the remainder of the division. To get the true division of an array, NumPy library has… Read More
Let us see how to compute matrix multiplication with NumPy. We will be using the method to find the product of 2 matrices. For… Read More
In this article, we will see how to compute the negative value for all elements in a given NumPy array. So, The negative value is… Read More
Let’s see how to calculate the difference between neighboring elements in an array using NumPy library. So, We can find out the difference between neighboring… Read More
 Let’s see the program for computing the natural logarithm of one plus each element of a given array in floating-point accuracy using NumPy library. For… Read More
Let’s see How to get the minimum and maximum value of a given NumPy array along the second axis. Here, the Second axis means row-wise.… Read More
In this article, let’s discuss how to compute the reciprocal for all the elements of a given NumPy array. Method 1: Through reciprocal_arr = 1/arr… Read More
Let’s see the program for how to get the n-largest values of an array using NumPy library. For getting n-largest values from a NumPy array… Read More
In this article, let’s discuss how to get the floor, ceiling, and truncated values of the elements of a Numpy array. First, we need to… Read More
Exponential Function (e^x) is a mathematical function that calculates e raised to the power x where e is an irrational number, approximately 2.71828183. It can… Read More