GetUnderlying - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


Finance

  

GetUnderlying

  

get node underlying of a binomial/trinomial tree

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

GetUnderlying(T, i, j)

Parameters

T

-

binomial or trinomial tree data structure

i

-

positive integer; time step

j

-

positive integer; node index

Description

• 

The GetUnderlying command returns the value of the underlying for node j at level i of the tree T. See GetDescendants for more details about node indexing.

Examples

withFinance:

TTrinomialTree5,1,2,3,4,5,6,7

Tmoduleend module

(1)

TreePlotT,thickness=3,gridlines=true

GetUnderlyingT,4,1

1.

(2)

SetUnderlyingT,4,1,2

GetUnderlyingT,4,1

2.

(3)

SetUnderlyingT,4,1,2

SetUnderlyingT,4,7,6

TreePlotT,thickness=3,gridlines=true

Compatibility

• 

The Finance[GetUnderlying] command was introduced in Maple 15.

• 

For more information on Maple 15 changes, see Updates in Maple 15.

See Also

Finance[BinomialTree]

Finance[GetDescendants]

Finance[GetProbabilities]

Finance[SetProbabilities]

Finance[SetUnderlying]

Finance[TrinomialTree]