diff --git a/src/function.rs b/src/function.rs index 2bb4d4f..a5a0cb6 100644 --- a/src/function.rs +++ b/src/function.rs @@ -145,6 +145,7 @@ impl FunctionEntry { .collect(), ); } + Some(self.output.derivative.as_ref().unwrap().clone()) }; @@ -155,6 +156,7 @@ impl FunctionEntry { self.output.integral = Some((data.iter().map(|(x, y)| Bar::new(*x, *y)).collect(), area)); } + let cache = self.output.integral.as_ref().unwrap(); Some((cache.0.clone(), cache.1)) }