Solve problem 5 task 1
This commit is contained in:
parent
710815ad49
commit
1ad66e37fd
1 changed files with 3 additions and 0 deletions
|
@ -62,6 +62,9 @@
|
|||
⍝ 2020 APL Problem Solving Competition Phase II
|
||||
⍝ Stub function for Problem 5, Task 1 - rr
|
||||
⍝ Put your code and comments below here
|
||||
⍝ ((1+⊢)⊥⊣) computes the total return for a vector
|
||||
⍝ of amounts ⍺ and a vector of rates ⍵.
|
||||
r←((↑∘amounts)((1+⊢)⊥⊣)(↑∘rates))¨⍳⍴rates
|
||||
∇
|
||||
|
||||
∇ r←cashFlow pv rates
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue