Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Math / ECE 276 - Assignment 1 Due: Thursday, September 21. Nothing accepted after Monday, September 25. This assignment is worth 15 points. 10% off

Math / ECE 276 - Assignment 1 Due: Thursday, September 21. Nothing accepted after Monday, September 25. This assignment is worth 15 points. 10% off for being late, i.e. after 9/23. Note: You are to do all assignments in this course entirely by yourself. You are not to get help from anyone else, except me. See me if you need help. Problem. Another logical operator is the but-not operator with symbol -. If p and q are two logical values, bits, propositions or logical expressions then p - q is 1 (or true) if and only if p is true and q is false. Otherwise p q p-q p - q is 0. A truth table for - is at the right. 0 0 0 The purpose of this assignment is to determine if is associative, i.e. whether (p - q) - r = p - (q - r) for all possible logical values of p, q and r. Do this by making truth tables of (p - q) - r and p - (q - r) and checking if they are the same. 0 1 1 1 0 0 1 1 0 Do this in each of the following two ways. 1. (7 points) By hand. 2. (8 points) Write some commands or a program using mathematical software (such as Mathematica or MATLAB) or some computer language (such as C) to make the truth tables. Turn in a printed listing of the commands or program and computer output with your work. If you use Mathematica you might want to read the following sections of the online Notes. 9. An Introduction to Mathematica 1.2.2 Logical operations in Mathematica If you use MATLAB you might want to read the following section of the online Notes. 1.2.3 Logical operations in MATLAB If you use C you might want to read the following section of the online Notes. 1.2.4 Logical operations in C

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

An Introduction to Measure Theoretic Probability

Authors: George G. Roussas

2nd edition

128000422, 978-0128000427

More Books

Students also viewed these Mathematics questions