Compare commits

...

2 Commits

Author SHA1 Message Date
gbrochar 76a3f12d9e Merge branch 'negation_normal_form' 2024-01-24 13:31:30 +01:00
gbrochar b01b184e46 fix: truth table reversed output 2024-01-22 15:32:59 +01:00
2 changed files with 1 additions and 1 deletions

View File

@ -20,5 +20,6 @@ fn main() {
println!("{}", gray_code(15));
println!("{}", gray_code(7));
println!("{}", gray_code(3));
print_truth_table("ZFG|&");
print_truth_table("ABC|&");
}

View File

@ -97,7 +97,6 @@ pub fn print_truth_table(formula: &str) {
separator = format!("{separator}---|");
println!("{format}");
println!("{separator}");
//dbg!(vec.clone());
recursive_fn(formula, vec.into_iter().rev().collect(), String::from("|"));
// call eval formula a lot
}