Movatterモバイル変換


[0]ホーム

URL:


SciPy

numpy.rate

numpy.rate(nper,pmt,pv,fv,when='end',guess=None,tol=None,maxiter=100)[source]

Compute the rate of interest per period.

Parameters:
nper:array_like

Number of compounding periods

pmt:array_like

Payment

pv:array_like

Present value

fv:array_like

Future value

when:{{‘begin’, 1}, {‘end’, 0}}, {string, int}, optional

When payments are due (‘begin’ (1) or ‘end’ (0))

guess:Number, optional

Starting guess for solving the rate of interest, default 0.1

tol:Number, optional

Required tolerance for the solution, default 1e-6

maxiter:int, optional

Maximum iterations in finding the solution

Notes

The rate of interest is computed by iteratively solving the(non-linear) equation:

fv+pv*(1+rate)**nper+pmt*(1+rate*when)/rate*((1+rate)**nper-1)=0

forrate.

References

Wheeler, D. A., E. Rathke, and R. Weir (Eds.) (2009, May). Open DocumentFormat for Office Applications (OpenDocument)v1.2, Part 2: RecalculatedFormula (OpenFormula) Format - Annotated Version, Pre-Draft 12.Organization for the Advancement of Structured Information Standards(OASIS). Billerica, MA, USA. [ODT Document]. Available:http://www.oasis-open.org/committees/documents.php?wg_abbrev=office-formulaOpenDocument-formula-20090508.odt

Previous topic

numpy.nper

Next topic

Functional programming

Quick search

  • © Copyright 2008-2018, The SciPy community.
  • Last updated on Jul 24, 2018.
  • Created usingSphinx 1.6.6.

[8]ページ先頭

©2009-2025 Movatter.jp