option_price: Present option values (may be a vector)
callput: 1 for calls, -1 for puts (may be a vector)
S0: initial underlying price (may be a vector)
K: strike (may be a vector)
r: risk-free interest rate (may be a vector)
time: Time from 0 until expiration (may be a vector)
const_default_intensity: hazard rate of underlying default (may be a vector)
divrate: A continuous rate for dividends and other cashflows such as foreign interest rates (may be a vector)
borrow_cost: A continuous rate for stock borrow costs (may be a vector)
dividends: A data.frame with columns time, fixed, and proportional. Dividend size at the given time is then expected to be equal to fixed + proportional * S / S0. Fixed dividends will be converted to proprtional for purposes of this algorithm.
relative_tolerance: Relative tolerance in option price to achieve before halting the search
max.iter: Number of iterations to try before abandoning the search
Other European Options: black_scholes_on_term_structures(), blackscholes(), implied_volatilities_with_rates_struct(), implied_volatility_with_term_struct(), implied_volatility()