This commit is contained in:
Simon Gardling
2022-03-03 13:58:57 -05:00
parent a16da53d13
commit 9aa4088731
3 changed files with 7 additions and 4 deletions

View File

@@ -38,6 +38,7 @@ pub struct Function {
sum: RiemannSum,
}
// x^2 function, set here so we don't have to regenerate it every time a new function is made
fn default_function(x: f64) -> f64 { x.powi(2) }
impl Function {