-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
109 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
pub(crate) const TWO_PI: f64 = std::f64::consts::TAU; | ||
pub(crate) const SQRT_PI_OVER_TWO: f64 = 1.253_314_137_315_500_3; | ||
pub(crate) const SQRT_TWO_PI: f64 = 2.506_628_274_631_000_7; | ||
pub(crate) const SQRT_THREE: f64 = 1.732_050_807_568_877_2; | ||
pub(crate) const SQRT_ONE_OVER_THREE: f64 = 0.577_350_269_189_625_7; | ||
pub(crate) const TWO_PI_OVER_SQRT_TWENTY_SEVEN: f64 = 1.209_199_576_156_145_2; | ||
pub(crate) const SQRT_THREE_OVER_THIRD_ROOT_TWO_PI: f64 = 0.938_643_487_427_383_6; | ||
pub(crate) const PI_OVER_SIX: f64 = std::f64::consts::FRAC_PI_6; | ||
pub(crate) const FOURTH_ROOT_DBL_EPSILON: f64 = 0.0001220703125; | ||
pub(crate) const SIXTEENTH_ROOT_DBL_EPSILON: f64 = 0.10511205190671433; | ||
pub(crate) const SQRT_DBL_MIN: f64 = 1.4916681462400413e-154; | ||
pub(crate) const SQRT_MIN_POSITIVE: f64 = 1.4916681462400413e-154; | ||
pub(crate) const SQRT_DBL_MAX: f64 = 1.3407807929942596e154; | ||
// pub(crate) const SQRT_DBL_MIN: f64 = 1.3407807929942596e154; | ||
// Set this to 0 if you want positive results for (positive) denormalised inputs, else to DBL_MIN. | ||
// Note that you cannot achieve full machine accuracy from denormalised inputs! | ||
pub(crate) const DENORMALISATION_CUTOFF: f64 = 0.0; | ||
pub(crate) const ONE_OVER_SQRT_TWO_PI: f64 = 0.3989422804014327; | ||
pub(crate) const VOLATILITY_VALUE_TO_SIGNAL_PRICE_IS_BELOW_INTRINSIC: f64 = f64::NEG_INFINITY; | ||
pub(crate) const VOLATILITY_VALUE_TO_SIGNAL_PRICE_IS_ABOVE_MAXIMUM: f64 = f64::INFINITY; | ||
pub(crate) const LN_TWO_PI: f64 = 1.8378770664093453; | ||
pub(crate) const HALF_OF_LN_TWO_PI: f64 = 0.918_938_533_204_672_8; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.