feat(maths::solver): prep solver

This commit is contained in:
gbrochar 2023-08-07 17:29:28 +02:00
parent f9833263ef
commit c0de467076
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ pub mod parser;
pub mod maths;
pub fn pretty(v: Vec<GaussianRational>) {
pub fn pretty(v: &Vec<GaussianRational>) {
v[0].print();
for i in 1..v.len() {
print!(" + ");

View File

@ -10,7 +10,7 @@ fn main() {
println!("{:?}", equation);
let is_equation = computorv1::maths::evaluator::is_equation(&equation);
let evaluated = computorv1::maths::evaluator::evaluate(equation);
computorv1::pretty(evaluated);
computorv1::pretty(&evaluated);
if is_equation {
computorv1::maths::solver::solve(evaluated);
}