Solve problem 5 task 2
This commit is contained in:
parent
324122088b
commit
ec3b485a50
1 changed files with 4 additions and 5 deletions
|
@ -86,11 +86,10 @@
|
||||||
⍝ heavily simplified.)
|
⍝ heavily simplified.)
|
||||||
rr←{recur←{⍵[1]+⍺×1+⍵[2]} ⋄ 1↓⌽⊃{(⊂(⊃⍵)recur⍺),⍵}/⌽⍺,¨⍵}
|
rr←{recur←{⍵[1]+⍺×1+⍵[2]} ⋄ 1↓⌽⊃{(⊂(⊃⍵)recur⍺),⍵}/⌽⍺,¨⍵}
|
||||||
|
|
||||||
∇ r←cashFlow pv rates
|
⍝ 2020 APL Problem Solving Competition Phase II
|
||||||
⍝ 2020 APL Problem Solving Competition Phase II
|
⍝ Problem 5, Task 2 - pv
|
||||||
⍝ Stub function for Problem 5, Task 2 - pv
|
⍝ Simply apply the formula for cashflow calculations.
|
||||||
⍝ Put your code and comments below here
|
pv←{+/⍺÷×\1+⍵}
|
||||||
∇
|
|
||||||
|
|
||||||
∇ text←templateFile Merge jsonFile
|
∇ text←templateFile Merge jsonFile
|
||||||
⍝ 2020 APL Problem Solving Competition Phase II
|
⍝ 2020 APL Problem Solving Competition Phase II
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue