Skip to content

Solve Black Scholes using Crank-Nicolson Finite Difference method.

Notifications You must be signed in to change notification settings

derekvasilich/black-scholes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

black-scholes

BlackScholesEquation

Solve Black Scholes (above) using Crank-Nicolson Finite Difference method.

This code numerically solves hyperbolic PDEs of the form:

Dt[u] + a Dx[u] + b Dy[u] + b Dxx[u] + u = F(t, x)

where Dt[], Dx[], Dy[], and Dxx[] are the differential operators for t, x, and y

The solutions are animated in a window. Data is saved to text files when 's' is pressed.

Schemes

The following explicit finite difference schemes are implemented:

  • Forward-Time Forward-Space
  • Forward-Time Backward-Space
  • Forward-Time Central-Space
  • Lax Fredrichs
  • Leapfrog
  • Equilibrium
  • Lax Wendroff

The following implicit finite difference schemes are implemented:

  • Crank Nicolson

About

Solve Black Scholes using Crank-Nicolson Finite Difference method.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages