.. _sphx_glr_api_gallery_pde_methods_schemes: Schemes ------- The Black-Scholes equation on a grid: explicit, implicit and Crank-Nicolson time stepping, the tridiagonal solves they need, the transformation to the heat equation, the link to trinomial trees, and knock-out barriers. .. raw:: html
.. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /api/gallery/pde_methods/schemes/images/thumb/sphx_glr_plot_01_crank_nicolson_thumb.png :alt: :doc:`/api/gallery/pde_methods/schemes/plot_01_crank_nicolson` .. raw:: html
Crank-Nicolson
.. raw:: html
.. only:: html .. image:: /api/gallery/pde_methods/schemes/images/thumb/sphx_glr_plot_02_laasonen_implicit_thumb.png :alt: :doc:`/api/gallery/pde_methods/schemes/plot_02_laasonen_implicit` .. raw:: html
Laasonen's implicit scheme
.. raw:: html
.. only:: html .. image:: /api/gallery/pde_methods/schemes/images/thumb/sphx_glr_plot_03_thomas_algorithm_thumb.png :alt: :doc:`/api/gallery/pde_methods/schemes/plot_03_thomas_algorithm` .. raw:: html
The Thomas algorithm
.. raw:: html
.. only:: html .. image:: /api/gallery/pde_methods/schemes/images/thumb/sphx_glr_plot_04_heat_equation_transform_thumb.png :alt: :doc:`/api/gallery/pde_methods/schemes/plot_04_heat_equation_transform` .. raw:: html
Black-Scholes as the heat equation
.. raw:: html
.. only:: html .. image:: /api/gallery/pde_methods/schemes/images/thumb/sphx_glr_plot_05_schwartz_explicit_thumb.png :alt: :doc:`/api/gallery/pde_methods/schemes/plot_05_schwartz_explicit` .. raw:: html
Schwartz: explicit finite differences
.. raw:: html
.. only:: html .. image:: /api/gallery/pde_methods/schemes/images/thumb/sphx_glr_plot_06_explicit_is_trinomial_thumb.png :alt: :doc:`/api/gallery/pde_methods/schemes/plot_06_explicit_is_trinomial` .. raw:: html
Brennan-Schwartz: explicit schemes are trinomial trees
.. raw:: html
.. only:: html .. image:: /api/gallery/pde_methods/schemes/images/thumb/sphx_glr_plot_07_barrier_pde_thumb.png :alt: :doc:`/api/gallery/pde_methods/schemes/plot_07_barrier_pde` .. raw:: html
Zvan-Forsyth-Vetzal barrier options
.. thumbnail-parent-div-close .. raw:: html
.. toctree:: :hidden: /api/gallery/pde_methods/schemes/plot_01_crank_nicolson /api/gallery/pde_methods/schemes/plot_02_laasonen_implicit /api/gallery/pde_methods/schemes/plot_03_thomas_algorithm /api/gallery/pde_methods/schemes/plot_04_heat_equation_transform /api/gallery/pde_methods/schemes/plot_05_schwartz_explicit /api/gallery/pde_methods/schemes/plot_06_explicit_is_trinomial /api/gallery/pde_methods/schemes/plot_07_barrier_pde