mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 15:01:08 +00:00
Fix docstring in present_value.py (#8702)
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
parent
c4dcc44dd4
commit
f6df26bf0f
|
@ -363,6 +363,7 @@
|
|||
## Financial
|
||||
* [Equated Monthly Installments](financial/equated_monthly_installments.py)
|
||||
* [Interest](financial/interest.py)
|
||||
* [Present Value](financial/present_value.py)
|
||||
* [Price Plus Tax](financial/price_plus_tax.py)
|
||||
|
||||
## Fractals
|
||||
|
@ -655,6 +656,7 @@
|
|||
* [Sum Of Harmonic Series](maths/sum_of_harmonic_series.py)
|
||||
* [Sumset](maths/sumset.py)
|
||||
* [Sylvester Sequence](maths/sylvester_sequence.py)
|
||||
* [Tanh](maths/tanh.py)
|
||||
* [Test Prime Check](maths/test_prime_check.py)
|
||||
* [Trapezoidal Rule](maths/trapezoidal_rule.py)
|
||||
* [Triplet Sum](maths/triplet_sum.py)
|
||||
|
|
|
@ -6,6 +6,7 @@ An algorithm that calculates the present value of a stream of yearly cash flows
|
|||
2. An array of cash flows, with the index of the cash flow being the associated year
|
||||
|
||||
Note: This algorithm assumes that cash flows are paid at the end of the specified year
|
||||
"""
|
||||
|
||||
|
||||
def present_value(discount_rate: float, cash_flows: list[float]) -> float:
|
||||
|
|
Loading…
Reference in New Issue
Block a user