SimpleCashFlow - Maple Help

Finance

 SimpleCashFlow
 construct a cash flow at a given date

 Calling Sequence SimpleCashFlow(amount, date)

Parameters

 amount - real constant; amount of cash flow date - a string containing a date specification in a format recognized by ParseDate or a date data structure; date of cash flow

Description

 • The SimpleCashFlow command constructs a simple cash flow at a given date.

Examples

 > $\mathrm{with}\left(\mathrm{Finance}\right):$
 > $\mathrm{SetEvaluationDate}\left("January 01, 2000"\right):$
 > $\mathrm{EvaluationDate}\left(\right)$
 ${"January 1, 2000"}$ (1)
 > $\mathrm{date}≔"Jan-01-2006"$
 ${\mathrm{date}}{≔}{"Jan-01-2006"}$ (2)
 > $\mathrm{cashflow1}≔\mathrm{SimpleCashFlow}\left(100,\mathrm{date}\right)$
 ${\mathrm{cashflow1}}{≔}{\mathrm{100. on January 1, 2006}}$ (3)
 > $\mathrm{NetPresentValue}\left(\mathrm{cashflow1},0.03\right)$
 ${83.52702114}$ (4)
 > $\mathrm{cashflow2}≔\mathrm{SimpleCashFlow}\left(-100,\mathrm{date}\right)$
 ${\mathrm{cashflow2}}{≔}{\mathrm{-100. on January 1, 2006}}$ (5)
 > $\mathrm{NetPresentValue}\left(\mathrm{cashflow2},0.03\right)$
 ${-83.52702114}$ (6)
 > $\mathrm{cflows}≔\left[\mathrm{seq}\left(\mathrm{SimpleCashFlow}\left(100,\mathrm{AdvanceDate}\left(\mathrm{date},3i,\mathrm{Months}\right)\right),i=1..4\right)\right]$
 ${\mathrm{cflows}}{≔}\left[{\mathrm{100. on Apr-01-2006}}{,}{\mathrm{100. on Jul-01-2006}}{,}{\mathrm{100. on Oct-01-2006}}{,}{\mathrm{100. on Jan-01-2007}}\right]$ (7)
 > $\mathrm{NetPresentValue}\left(\mathrm{cflows},0.03\right)$
 ${327.9371480}$ (8)

Compatibility

 • The Finance[SimpleCashFlow] command was introduced in Maple 15.