Skip to content

Commit

Permalink
Volatility for option_price_zero_vol changed from 0 to 1e-12 to avoid…
Browse files Browse the repository at this point in the history
… numerical problems
  • Loading branch information
hudde committed Aug 31, 2023
1 parent bd35309 commit bb0eec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/BS_Implied_Volatility.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ BS_Implied_Volatility <-
exercise_price = exercise_price,
r = r,
time_to_maturity = time_to_maturity,
volatility = 0,
volatility = 1e-12,
dividend_yield = dividend_yield,
payoff = payoff,
greek = "fair_value"
Expand Down

0 comments on commit bb0eec7

Please sign in to comment.