diff --git a/src/main.rs b/src/main.rs index 2334a6c..527ef8f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,9 +21,12 @@ fn main() { panic!("Contains NaN, this is probably the result of bad math"); } + + println!("{}", function); + let rust_function = function.parse::().unwrap().bind("x").unwrap(); - let result = rust_function(9.0); - println!("{}", result); + let result = rust_function(5.0); + println!("I can also calculate with this function: f(5) = {}", result); /* let width = 7000;