You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using eval to parse variable's to the power only positive values are considered.
use kalk::parser;fnmain(){letmut parser_context = parser::Context::new();let result = parser::eval(&mut parser_context,&"x^2=4").unwrap().unwrap();println!("{}", result);}
Outputs:
2
This is missing the solution x=-2.
The text was updated successfully, but these errors were encountered:
It does indeed only return one of the solutions when estimating solutions to equations. I guess it would be possible to make it return a vector of solutions in cases where there are several of them, but I'm not sure it would be able to find them all consistently and efficiently. Will look in to it more though.
When using
eval
to parse variable's to the power only positive values are considered.Outputs:
This is missing the solution x=-2.
The text was updated successfully, but these errors were encountered: