This commit is contained in:
Simon Gardling
2022-03-01 10:59:11 -05:00
parent f30acff409
commit 450874d2fd
2 changed files with 7 additions and 2 deletions

View File

@@ -187,6 +187,7 @@ impl Function {
}
// Creates and does the math for creating all the rectangles under the graph
// TODO: fix this stuff, it's half broken
fn integral_rectangles(&self) -> (Vec<(f64, f64)>, f64) {
if self.integral_min_x.is_nan() {
panic!("integral_min_x is NaN")