get the size of a binomial/trinomial tree at the given level
binomial or trinomial tree data structure
positive integer; level
The GetSize command returns the number of nodes at level i of the tree T. See GetDescendants for more details about node indexing.
M ≔ VasicekModel⁡0.05,0.03,0.5,0.03
M ≔ moduleend module
T ≔ ShortRateTree⁡M,3,20
T ≔ moduleend module
The Finance[GetSize] command was introduced in Maple 15.
For more information on Maple 15 changes, see Updates in Maple 15.
Download Help Document
What kind of issue would you like to report? (Optional)