diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-01-18 00:04:25 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-01-18 00:04:25 +0100 |
| commit | 670c1881af4680ce7c248498528d14b98210af3f (patch) | |
| tree | 41b6bd315ccbc7540f02b83f8e755dfc51770bee /src/main.rs | |
| parent | 3cd19a42e1cc66b09f4279625385e00292b8900d (diff) | |
complex: use real pow on real only complex to gain precision
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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!{}) |