pub trait ImpliedVolatility<T>: Pricing<T> + Greeks<T>where
T: Float,{
// Required methods
fn calc_iv(&self, tolerance: T) -> Result<T, String>;
fn calc_rational_iv(&self) -> Result<f64, String>;
}pub trait ImpliedVolatility<T>: Pricing<T> + Greeks<T>where
T: Float,{
// Required methods
fn calc_iv(&self, tolerance: T) -> Result<T, String>;
fn calc_rational_iv(&self) -> Result<f64, String>;
}