Pages created and updated by
Terry Sturtevant
Date Posted:
May 12, 2017
In this tutorial, we will show you how you can verify logic equations using a Computer Algebra System.
We are designing a circuit for an automatic door like those you see at supermarkets. The door should open only when a person is detected walking through or when a person presses a switch (such as the wheelchair button) to have the door open. The door should only operate if it has been unlocked.
We can verify that this equations works using a CAS (computer algebra system) such as Maple or Maxima. A related system is Wolfram Alpha truth tables.
f:= (h and not c) or (p and not c);
(h and not c) or (p and not c)
You can substitute in specific component values:
subs( h=false, c=false, p=false, f);
false
f:(h and not c) or (p and not c); (h and not c)) or (p and not c) f,h=false,c=false,p=false; false
Demonstrate the results to the lab
demonstrator.
(Note: If you do it outside the lab, you can print out a transcript of
your session and bring it to the lab or save the session and load it in
the lab.)
Wilfrid Laurier University
© 2019 Wilfrid Laurier University