Solve problem 5 task 2

This commit is contained in:
Dimitri Lozeve 2020-05-10 21:28:20 +02:00
parent 324122088b
commit ec3b485a50

View file

@ -86,11 +86,10 @@
⍝ heavily simplified.)
rr←{recur←{⍵[1]+×1+⍵[2]} ⋄ 1↓⌽⊃{(⊂(⊃⍵)recur),⍵}/⌽⍺,¨⍵}
∇ r←cashFlow pv rates
⍝ 2020 APL Problem Solving Competition Phase II
⍝ Stub function for Problem 5, Task 2 - pv
⍝ Put your code and comments below here
Problem 5, Task 2 - pv
⍝ Simply apply the formula for cashflow calculations.
pv←{+/⍺÷×\1+⍵}
∇ text←templateFile Merge jsonFile
⍝ 2020 APL Problem Solving Competition Phase II