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[DirtyPrice] - calculate the dirty price of a bond
Calling Sequence
DirtyPrice(bond, yield, compounding, opts)
Parameters
bond
-
fixed- or floating-rate bond data structure; bond
yield
non-negative constant; desired yield
compounding
Simple, Continuous, Compounded, or SimpleThenCompounded; the underlying compounding type
opts
equations of the form option = value where option is evaluationdate; specify options for the DirtyPrice command
Description
The DirtyPrice command computes the dirty price of a bond, given its yield. Dirty price does include any accrued interest that has accumulated since the last coupon payment. The dirty price of a bond is the same as the net present value of a bond (see NetPresentValue). See the CleanPrice command to calculate the clean price of a bond, which does not include any accrued interest.
The parameter bond is either a fixed coupon bond or floating rate bond. The parameter yield is the desired yield.
Options
evaluationdate = a string containing a date specification in a format recognized by ParseDate or a date data structure -- This option specifies the evaluation date. By default this is set to the global evaluation date (see EvaluationDate).
Compatibility
The Finance[DirtyPrice] command was introduced in Maple 15.
For more information on Maple 15 changes, see Updates in Maple 15.
Examples
Consider a zero-coupon bond with face value 100 maturing in one year.
For bonds the DirtyPrice is equivalent to the NetPresentValue command when the discount rate is constant and equal to the yield. Similarly, the InternalRateOfReturn command is equivalent to the YieldFromDirtyPrice command.
Consider a 3-year bond with face value of 100 that pays a fixed coupon of 3 percent issued on March 15, 2005.
Reset the default day counter to be Thirty360European.
Calculate the purchase price of the bond using five different methods. Note that by default all rates are assumed to be based on continuous compounding.
Here is the same bond using a different business day convention and day counter.
Note that the NetPresentValue command will adjust the evaluation date according to the underlying business day convention.
See Also
Finance[AccruedInterest], Finance[DayCounter], Finance[DirtyPrice], Finance[FixedCouponBond], Finance[FloatingRateBond], Finance[FormatDate], Finance[ParseDate], Finance[YearFraction], Finance[Yield], Finance[ZeroCouponBond]
Download Help Document