From 670c1881af4680ce7c248498528d14b98210af3f Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Thu, 18 Jan 2024 00:04:25 +0100 Subject: complex: use real pow on real only complex to gain precision --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 614eba6..5f42b10 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,7 +19,7 @@ use expression_function::ExpressionFunction; fn main() { let func = ExpressionFunction::from_string("f(x) = x^2".to_string()); - let expr = "f(5)"; + let expr = "f(4 + 3i)"; let ctx: Context = Context::new() .with_operations(commonsense_operations!{}) -- cgit v1.2.3-70-g09d2