Skip to content

Commit 227d6c1

Browse files
cclaussgithub-actions
authored andcommitted
Fix docstring in present_value.py (TheAlgorithms#8702)
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
1 parent 6f51d3c commit 227d6c1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

DIRECTORY.md

+2
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@
363363
## Financial
364364
* [Equated Monthly Installments](financial/equated_monthly_installments.py)
365365
* [Interest](financial/interest.py)
366+
* [Present Value](financial/present_value.py)
366367
* [Price Plus Tax](financial/price_plus_tax.py)
367368

368369
## Fractals
@@ -655,6 +656,7 @@
655656
* [Sum Of Harmonic Series](maths/sum_of_harmonic_series.py)
656657
* [Sumset](maths/sumset.py)
657658
* [Sylvester Sequence](maths/sylvester_sequence.py)
659+
* [Tanh](maths/tanh.py)
658660
* [Test Prime Check](maths/test_prime_check.py)
659661
* [Trapezoidal Rule](maths/trapezoidal_rule.py)
660662
* [Triplet Sum](maths/triplet_sum.py)

financial/present_value.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
2. An array of cash flows, with the index of the cash flow being the associated year
77
88
Note: This algorithm assumes that cash flows are paid at the end of the specified year
9+
"""
910

1011

1112
def present_value(discount_rate: float, cash_flows: list[float]) -> float:

0 commit comments

Comments
 (0)