numpy.mirr() in Python Last Updated : 05 Aug, 2022 Comments Improve Suggest changes Like Article Like Report numpy.mirr(values, finance_rate, reinvest_rate) : This financial function helps user to compute modified IRR Value i.e. Modified Internal Rate of Return ie. “average” periodically compounded rate of returnIRR equals to - Parameters : values : [array-like] Input cash flows per time period. net “deposits” are negative and net “withdrawals” are positive finance_rate : Interest paid on cash amounts. reinvest_rate : Interest received on cash amounts.Return : Modified Internal Rate of Return for periodic input values ie. considering interest values. Code: Python3 # Python program explaining # mirr() function import numpy as np ''' Question : Investment = 500 Withdrawals at regular interval : 50, 31, 3, 11 ''' Solution = np.mirr([-500, 50, 31, 3, 11], .34, .21) print("Solution - Modified Internal Rate of Return : ", Solution) Output: Solution - Modified Internal Rate of Return : -0.26165615714437973 Comment More infoAdvertise with us Next Article numpy.mirr() in Python mohit gupta_omg :) Follow Improve Article Tags : Python Python-numpy Python numpy-Financial Functions Practice Tags : python Similar Reads numpy.irr() in Python numpy.irr(values) : This financial function helps user to compute IRR Value i.e. Internal Rate of Return ie. âaverageâ periodically compounded rate of return.  Parameters : values : [array-like] Input cash flows per time period. net âdepositsâ are negative and net âwithdrawalsâ are positiveReturn 1 min read numpy.mod() in Python numpy.mod() is another function for doing mathematical operations in numpy.It returns element-wise remainder of division between two array arr1 and arr2 i.e. arr1 % arr2 .It returns 0 when arr2 is 0 and both arr1 and arr2 are (arrays of) integers. Syntax : numpy.mod(arr1, arr2, /, out=None, *, where 2 min read numpy.find() in Python numpy.core.defchararray.find(arr, substring, start=0, end=None): Finds the lowest index of the sub-string in the specified range. Parameters: arr : array-like or string to be searched. substring : substring to search for. start, end : [int, optional] Range to search in. Returns : An integer array wi 1 min read numpy.index() in Python numpy.core.defchararray.index(arr, substring, start=0, end=None): Finds the lowest index of the sub-string in the specified range But if substring is not found, it raises ValueError. Parameters: arr : array-like or string to be searched. substring : substring to search for. start, end : [int, option 1 min read numpy.alen() in Python numpy.alen() function is used to return the length of the first dimension of the input array. Syntax : numpy.alen(arr) Parameters : arr : [array_like] Input array. Return : [int]Length of the first dimension of arr. Code #1 : Python3 # Python program explaining # alen() function import numpy as geek 1 min read numpy.nonzero() in Python numpy.nonzero()function is used to Compute the indices of the elements that are non-zero. It returns a tuple of arrays, one for each dimension of arr, containing the indices of the non-zero elements in that dimension. The corresponding non-zero values in the array can be obtained with arr[nonzero(ar 2 min read numpy.i0() function | Python numpy.i0() function is the modified Bessel function of the first kind, order 0. it's usually denoted by I0. Syntax : numpy.i0(x) Parameters : x : [array_like, dtype float or complex] Argument of the Bessel function. Return : [ndarray, shape = x.shape, dtype = x.dtype] The modified Bessel function ev 1 min read Python | Numpy ndarray.__imod__() With the help of Numpy ndarray.__imod__(), every element in an array is operated on binary operator i.e mod(%). Remember we can use any type of values in an array and value for mod is applied as the parameter in ndarray.__imod__(). Syntax: ndarray.__imod__($self, value, /) Return: self%=value Exampl 1 min read Python NumPy Numpy is a general-purpose array-processing package. It provides a high-performance multidimensional array object, and tools for working with these arrays. It is the fundamental package for scientific computing with Python.Besides its obvious scientific uses, Numpy can also be used as an efficient m 6 min read numpy.rint() in Python The numpy.rint() is a mathematical function that rounds elements of the array to the nearest integer. Syntax : numpy.rint(x[, out]) = ufunc ârintâ) Parameters : array : [array_like] Input array. Return : An array with all array elements being rounded off, having same type and shape as input. Code #1 2 min read Like