F# codes I have written while learning F#
- Numerical financial recipes(download). F# implementations of all C++ routines in "Financial Numerical Recipes in C++". The codes include
- Basic bond calculations: price, yield, duration, convexity
- Term structure of interest rates (flat, interpolated)
- Binomial option pricing
- Basic option pricing, Black Scholes formula and its derivatives
- Warrants
- Black Scholes formula extended such that dividend paying stocks
- Finite Difference
- Option pricing by simulation
- Exotic options
- Merton's jump diffusion model
- Mean Variance Analysis
- Pricing of bond options
- Term structure models: Nelson Siegel, Cubic spline, Cox Ingersoll Ross, Vasicek
- MIT's sample programming assignments for SICP (here).
- Numerical differentiation and integration, Newton's square root approximation (from "Why functional programming matters")
(why_func_prog_codes.fsx)
- Programming Paraxis weekly problem
- Rosetta Code problems. "Rosetta Code is a programming chrestomathy site. The idea is to present solutions to the same task in as many different languages as possible, to demonstrate how languages are similar and different, and to aid a person with a grounding in one approach to a problem in learning another. Rosetta Code currently has 449 tasks, and is aware of 351 languages, though we do not (and cannot) have solutions to every task in every language."(http://rosettacode.org/)(rs.zip)
Last Updated: