Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
Finance[TimeGrid] - return an object for time discretization
Calling Sequence
TimeGrid(endtime, timesteps)
TimeGrid(timeinterval, timesteps)
TimeGrid(gridpoints)
Parameters
timeinterval
-
range; length time interval in years
timesteps
positive integer; number of steps in the time interval
endtime
positive; end of the time interval
gridpoints
list or Vector; points in the time grid
Description
The TimeGrid command generates discretizing grids for the time space with the given parameters; the command returns a module representing the constructed time grid. This module can be passed to other commands of the Finance package that expect a time grid as one of the parameters; it can also be used as if it were a procedure. Assume for example that the module returned by TimeGrid was assigned to the name T. Then for any positive integer i, will return the ith member of the corresponding time grid or issue an error if i exceeds the size of the time grid. For negative i, returns the ith from the right element of the time grid. The number of time steps in the created time grid can be accessed using the timesteps export.
The calling sequence TimeGrid(endtime, timesteps) creates a uniform time grid on the interval using the specified number of timesteps.
The calling sequence TimeGrid(timesteps, timesteps) creates a uniform time grid on the interval using the specified number of timesteps. The parameter timeinterval must be a range of type , where t0 and t1 are non-negative real constants such that .
Finally, the calling sequence TimeGrid(gridpoints) can be used to create non-uniform time grids with the specified points. The parameter gridpoints can be either a list or a Vector. The elements of gridpoints must be sorted in ascending order.
Note that all time grids must contain the point , which will be added if necessary.
Compatibility
The Finance[TimeGrid] command was introduced in Maple 15.
For more information on Maple 15 changes, see Updates in Maple 15.
Examples
See Also
Finance[PathGenerator], Finance[SamplePath], Finance[SampleValues], Finance[Schedule]
Download Help Document