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:
5
test/blackscholes.jl
Normal file
5
test/blackscholes.jl
Normal 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
1
test/runtests.jl
Normal file
@ -0,0 +1 @@
|
||||
include("blackscholes.jl")
|
Reference in New Issue
Block a user