Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.5K Views
|
1 Reply
|
1 Total Like
View groups...
Share
Share this post:

How to code irregular recurrence pattern of interest and principal payments

POSTED BY: Roger J Brown

I would say that this is a typical application of Fold[]:

Fold[#1 + #1 rate/360 QuantityMagnitude[(series[[#2 + 1, 1]] - series[[#2, 1]])] + series[[#2 + 1, 2]] &,
 start[[2]], Range[Length[series] - 1]]
POSTED BY: Henrik Schachner
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard