rename BackingFunction::derivative to BackingFunction::get_derivative_1

This commit is contained in:
Simon Gardling
2022-03-10 08:49:17 -05:00
parent 7e77f8b40d
commit cda3853a01
2 changed files with 8 additions and 5 deletions

View File

@@ -34,7 +34,9 @@ impl BackingFunction {
pub fn get(&self, x: f64) -> f64 { self.function.eval(&[x]).unwrap_or(f64::NAN) }
pub fn derivative(&self, x: f64) -> f64 { self.derivative_1.eval(&[x]).unwrap_or(f64::NAN) }
pub fn get_derivative_1(&self, x: f64) -> f64 {
self.derivative_1.eval(&[x]).unwrap_or(f64::NAN)
}
pub fn get_derivative_2(&self, x: f64) -> f64 {
self.derivative_2.eval(&[x]).unwrap_or(f64::NAN)