Change language

# numpy.npv () in Python

|

Parameters:

`  rate:  [scalar] Rate of discount  value:  [array_like, shape (M, )] value of cash flows time series. The (fixed) time interval between cash flow “events” must be the same as that for given rate is given. By convention, investments or “deposits” are -ve, income or “withdrawals” are + ve `

Return:

` present value as per given parameters. `

Solving the equation:

Code 1: Working

` `

` ## Python program explaining the pv () function import numpy as np   # rate values ​​ a =   np.npv ( 0.281 , [ - 100 , 19 , 49 ,  58 , 200 ]) print ( "Net Present Value (npv):" , a) `

Output:

` Net Present Value (npv): 46.5579792365 `

## Shop

Learn programming in R: courses

\$

Best Python online courses for 2022

\$

Best laptop for Fortnite

\$

Best laptop for Excel

\$

Best laptop for Solidworks

\$

Best laptop for Roblox

\$

Best computer for crypto mining

\$

Best laptop for Sims 4

\$

Latest questions

NUMPYNUMPY

psycopg2: insert multiple rows with one query

NUMPYNUMPY

How to convert Nonetype to int or string?

NUMPYNUMPY

How to specify multiple return types using type-hints

NUMPYNUMPY

Javascript Error: IPython is not defined in JupyterLab

## Wiki

Python OpenCV | cv2.putText () method

numpy.arctan2 () in Python

Python | os.path.realpath () method

Python OpenCV | cv2.circle () method

Python OpenCV cv2.cvtColor () method

Python - Move item to the end of the list

time.perf_counter () function in Python

Check if one list is a subset of another in Python

Python os.path.join () method