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 Package Commands for Term Structures
Overview
The Finance package also provides for creating and manipulating term structures of interest rates as well as volatility term structures. Here is the list of relevant commands:
BenchmarkRate
-
calculate benchmark rate based on a specified calendar
CompoundFactor
return a compound factor for the specified date or time
DiscountCurve
construct a yield curve based on known discount rates
DiscountFactor
return a discount factor for the specified date or time
EquivalentRate
calculate equivalent interest rate
ForwardCurve
construct a yield curve based on known forward rates
ImpliedRate
calculate interest rate implied by a given compound factor
ParRate
compute par rates based on a given term structure
ZeroCurve
construct a yield curve based on known zero rates
ZeroRate
compute zero rates based on a given term structure
Discount Factor and Compound Factor
The DiscountFactor command returns the discount factor corresponding to the specified interest rate, compounding type, and frequency.
The CompoundFactor command returns the compound factor corresponding to the specified interest rate, compounding type, and frequency.
Interest Rate Calculations
The EquivalentRate command generates a desired interest rate that is equivalent to the given interest rate.
The ImpliedRate command returns the implied rate for the given compound factor.
The ZeroRate (short for zero-coupon rate) command computes the rate of interest earned on an investment that starts today and ends at a future certain day (in years).
Use the input interest rates at different maturity times to construct a piecewise function.
First consider the case of continuously compounded interest.
Next consider the case of simply compounded interest.
You can see that the simple rates are a little larger than corresponding continuous compounding rates.
The forward rate is defined as the rate of interest implied by current zero rates for periods of time in the future.
CurveFitting:- Spline(times, rates, t, degree=1);
F := unapply((3.25), t):
Plot_F := plot(F(t), t = 0..2):
ZC := ZeroCurve(F):
Set compounding = Continuous so that the input interest rates are continuous compounding.
ZR := [seq(ZeroRate(ZC, i/100, compounding = Continuous), i = 1..200)];
Construct a yield term structure based on a piecewise interpolation of the given zero rates.
You will get the same results with the function CurveFitting:-Spline
Construct yield term structures based on piecewise interpolation of the given discount rates and forward rates.
References
John C. Hull, Options, Futures, and Other Derivatives, Prentice Hall, 2002
See Also
Stochastic Processes worksheet, Cash Flow Analysis worksheet, Day Counters worksheet, Lattice Methods worksheet, Calendars worksheet
Download Help Document