Mathematics Homework Solutions
Problem
#104493

Questions about ordered pairs, ordered triples, binary/unary operations, postfix notation

1.  Recall that ordered pairs must have the property that (x,y) = (u,v) if and only if x = u and y = v.  

a)  Prove that {{x}, {x,y}} = {{u}, {u,v}} if and only if x = u and y = v.  Therefore, although we know that (x,y) does not equal {x,y} , we can define the ordered pair (x,y) as the set {{x}, {x,y}}.

b)  Show by an example that we cannot define the ordered triple (x, y, z) as the set {{x}, {x,y}, {x,y,z}}

2.  Which of the following are binary or unary operations on the given sets?  For those that are not, where do they fail?

a)  x ◦ y = 1/x      if x is positive S = set of all real numbers
1/(-x)  if x is negative

b)  x ◦ y = xy (concatenation); S = se of all finite-length strings of symbols from the set {p,q,r}

c)  x ^ # = [x] where [x] denotes the greatest integer less than or equal to x; S = set of all real numbers

d)  x ◦ y = min(x,); S = set of all non-negative integers

e)  x ◦ y = greatest common multiple of x and y; S = set of all non-negative integers

f)  x ◦ y = x + y; S = the set of Fibonacci numbers

g)  x ^ # = the string that is the reverse of x; S = set of all finite-length strings of symbols from the set {p,q,r}

h)  x ◦ y = x + y; S = set of all real numbers minus the set of all rational numbers

3.  We have written binary operations in infix notation, where the operation symbol appears between the two operands, as in A + B.  Evaluation of a complicated arithmetic expression is more efficient when the operations are written in postfix notation, where the operation symbol appears after the two operands, as in AB +.  Many compilers change expressions in a computer program from infix to postfix form.   One way to produce an equivalent postfix expression from an infix expression is to write the infix expression with a full set of parentheses, move each operator to replace its corresponding right parenthesis, and then eliminate all left parentheses.  (Parentheses are not required in postfix notation.)  Thus,
A*B + C      becomes when fully parenthesized,     ((A*B) + C)     and the postfix notation is AB*C +.  

Rewrite each of the following in postfix notation:

a.  (A +B) * (C - D)

b.  A ** B - C*D

c.  A * C + B/(C + D*B)


See attached file for full problem description.

Attached file(s):
Attachments
induction 4.doc  View File

Attachment Content Summary (Note: view attachment at the above link before purchasing. Actual attachment content may vary slightly from that shown below.)

induction 4.doc
1. a) Recall that ordered pairs must have the property that (x,y) =
(u,v) if and only if x = u and y = v. Prove that {{x}, {x,y}} = {{u},
{u,v}} if and only if x = u and y = v. Therefore, although we know that
(x,y) does not equal {x,y} , we can define the ordered pair (x,y) as the
set {{x}, {x,y}}.

b) Show by an example that we cannot define the ordered triple (x,
y, z) as the set {{x}, {x,y}, {x,y,z}}

2. Which of the following are binary or unary operations on the given
sets? For those that are not, where do they fail?

a) x ◦ y = 1/x if x is positive S = set of all real numbers

1/(-x) if x is negative

b) x ◦ y = xy (concatenation); S = se of all finite-length strings of
symbols from the set {p,q,r}

c) x ^ # = [x] where [x] denotes the greatest integer less than or
equal to x; S = set of all real numbers

d) x ◦ y = min(x,); S = set of all non-negative integers

e) x ◦ y = greatest common multiple of x and y; S = set of all
non-negative integers

f) x ◦ y = x + y; S = the set of Fibonacci numbers

g) x ^ # = the string that is the reverse of x; S = set of all
finite-length strings of symbols from the set {p,q,r}

h) x ◦ y = x + y; S = set of all real numbers minus the set of all
rational numbers

-



hД:

hД:

И

К

Ж

И

摧㫄

xpression from an infix expression is to write the infix expression with
a full set of parentheses, move each operator to replace its
corresponding right parenthesis, and then eliminate all left
parentheses. (Parentheses are not required in postfix notation.) Thus,

A*B + C

Becomes when fully parenthesized,

((A*B) + C)

And the postfix notation is AB*C +. Rewrite each of the following in
postfix notation:

a. (A +B) * (C – D)

b. A ** B – C*D

c. A * C + B/(C + D*B)
Solution
What is this?
By OTA - Overall OTA Rating
Purchase Cost Now
$2.19 CAD (was ~$19.95)
Included in Download
  • Plain text response
  • Attached file(s):
    • induction+4.doc
$2.19 Instant Download
Add to Cart
Why you can trust BrainMass.com
  • Your Information is Secure
  • Best Online Academic Help Service
  • Students find real academic Success
Related Solutions
  • Ordered Pairs and Sets and Set Operations ( Complement, Union and Intersection ) - 1. a) Recall that ordered pairs must have the property that (x,y) = (u,v) if and only if x = u and y = v. Prove that {{x}, {x,y}} = {{u}, {u,v}} if and only if x = u and y = v. Therefore, although ...
  • Simplifying Expressions - Simplify: Section 4.2 40. w_^4 _____ w^6 58. (2s^-1t^3)-^3 (The bottom fraction is parenthesized with the top. 6s^2t-^4 68. 9.3 x 10^-5 Section 4.3 48. (w^2 - ...
  • Basis and Finite and Infinite Field Extensions - Find a basis for the extension of and also calculate We know already that is infinite. Give an example of fields and (with neither nor equal to ) such that: a) and are both infi ...
  • It is dealing with finite automatons - (a)For each of the following languages over the unary alphabet {a}, construct a finite automaton accepting it. i. {a^2} ii. {a^2, a^3, a^4} (b) Let A be any finite nonempty subset of {a, a^2 ...
  • Series Proof - Problem: Show that if a convergent series of real numbers contains only a finite number of negative terms, then it is absolutely convergent.
Browse