Question

In this assignment you will write code that will prove both equations for three logical equivalences (pick any three except t

0 0
Add a comment Improve this question Transcribed image text
Answer #1

=my_script.m RUN Vars [1x4] - out 1 2 3 [1x4] [1x4] 11 12 %commulative law %commulative law function test=my_script p=input(#ans 2 %DISTRIBUTIVE LAW %DISTRIBUTIVE LAW function test=my_script() p=input(enter values of p: ); q=input(enter values of# ans 1 2 00 OU 10 %De Morgans LAW %De Morgans LAW function test=my_script() p=input(enter values of p: ); q=input(enter

Add a comment
Know the answer?
Add Answer to:
In this assignment you will write code that will prove both equations for three logical equivalences...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Verify the logical equivalences using the theorem below: (p ∧ ( ~ ( ~ p ∨...

    Verify the logical equivalences using the theorem below: (p ∧ ( ~ ( ~ p ∨ q ) ) ) ∨ (p ∧ q) ≡ p Theorem 2.1.1 Let p, q, and r be statement variables, t a tautology, and c a contradiction. The following logical equivalences are true. 1. Commutativity: p1q=q1p; p V q = 9VP 2. Associativity: ( pq) Ar=p1qAr); (pVq) Vr=pv (Vr) 3. Distributivity: PA(Vr) = (p19) (par); p V (qar) = (pVg) (Vr) 4. Identity: pAt=p:...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT