change some usage of constants

This commit is contained in:
Simon Gardling
2022-03-08 10:47:45 -05:00
parent 0deff05ab5
commit 21e56cac4d
2 changed files with 4 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ const INTEGRAL_X_MAX: f64 = 1000.0;
const INTEGRAL_X_RANGE: RangeInclusive<f64> = INTEGRAL_X_MIN..=INTEGRAL_X_MAX;
// Default values
const DEFAULT_FUNCION: &str = "x^2";
pub const DEFAULT_FUNCION: &str = "x^2";
pub const DEFAULT_RIEMANN: RiemannSum = RiemannSum::Left;
const DEFAULT_MIN_X: f64 = -10.0;
const DEFAULT_MAX_X: f64 = 10.0;