Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
Finance[NetPresentValue] - return the net present value of future cash flows
Calling Sequence
NetPresentValue(instrument)
NetPresentValue(cashflows, discountrate, opts)
Parameters
instrument
-
cash flow swap or an interest rate swap; financial instrument
cashflows
data structure created using the SimpleCashFlow constructor or a list of such data structures; cash flows
discountrate
non-negative constant or a yield term structure; discount rate
opts
equations of the form option = value where option is one of referencedate or daycounter; specify options for the NetPresentValue command
Description
The NetPresentValue(instrument) calling sequence returns the net present value of the given instrument. The parameter instrument in this case can be either a cash flow swap or an interest rate swap. For bonds the net present value is the same as the dirty price (see DirtyPrice).
The NetPresentValue(cashflows, discountrate, opts) calling sequence returns the net present value for the future cash flows discounted with respect to the given discount rate.
Options
daycounter = a string containing a date specification in a format recognized by ParseDate or a date data structure -- This option specifies a day counter or day counting convention.
referencedate = a string containing a date specification in a format recognized by ParseDate or a date data structure -- This option specifies the reference date, that is, the date when the discount factor is 1. By default this is set to the global evaluation date.
Compatibility
The Finance[NetPresentValue] command was introduced in Maple 15.
For more information on Maple 15 changes, see Updates in Maple 15.
Examples
First set the global evaluation date.
Calculate the net present value of 100 dollars to be paid on January 2, 2007.
Here is another example.
Compute the value of this cash flow on January 1, 2005.
Here is another way to compute this. First, compute the accrued interest.
This is the value to be received on January 1, 2010. Discount this value using the discount rate.
See Also
Finance[CompoundFactor], Finance[DiscountFactor], Finance[FixedRateCoupon], Finance[InArrearIndexedCoupon], Finance[ParCoupon], Finance[SimpleCashFlow], Finance[UpFrontIndexedCoupon], Finance[ZeroCurve]
Download Help Document