1
0
mirror of https://github.com/bspeice/Quant.jl synced 2025-07-01 22:07:18 -04:00

Add initial Quant.jl code for Black-Scholes

This commit is contained in:
bspeice
2016-03-05 17:49:30 -05:00
commit 531ae12f0e
5 changed files with 82 additions and 0 deletions

5
test/blackscholes.jl Normal file
View File

@ -0,0 +1,5 @@
using Quant
@test_approx blackscholes_call(.25, 2, 1, 100, 95, .05) 15.047
@test_approx blackscholes_call(.25, 1, 100, 95, .05) blackscholes_call(.25, 2, 1, 100, 95, .05)

1
test/runtests.jl Normal file
View File

@ -0,0 +1 @@
include("blackscholes.jl")