- Joined
- 3/11/13
- Messages
- 2
- Points
- 11
Hi.
I found a bug in blsdeltaPut function.
"return Math.Exp(-Yield * Time)* CND(d1)-1;"
this should be
"return Math.Exp(-Yield * Time)* (CND(d1)-1);"
or
"return -Math.Exp(-Yield * Time)* CND(-d1);".
I found a bug in blsdeltaPut function.
"return Math.Exp(-Yield * Time)* CND(d1)-1;"
this should be
"return Math.Exp(-Yield * Time)* (CND(d1)-1);"
or
"return -Math.Exp(-Yield * Time)* CND(-d1);".