Solve a PDE/variational equality under GBM dynamics using an implicit finite difference scheme
1 2 3 4 5 6 7 8 9 10 11 12 | pde_gbm_greeks(
spot,
strike,
maturity,
rate,
div,
volat,
N,
M,
what = "call",
style = "american"
)
|
spot |
the spot price |
strike |
the strike sprice |
maturity |
the maturity of the option contract |
rate |
the risk-neutral rate |
div |
the dividend yield rate |
volat |
the volatility |
N |
the time resolution |
M |
the space resolution |
what |
the payoff to use |
style |
'european' for PDE/PIDE problems, 'american' for variational inequalities |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.