Am_lect_14 - Announcements Midterm 1 is on Wednesday Time Location 7pm to 9pm 141 Wohlers Hall Lecture on Wednesday is optional exam-related Q&A

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Announcements Midterm 1 is on Wednesday Time: 7pm to 9pm Location: 141 Wohlers Hall Lecture on Wednesday is optional: exam-related Q&A Extra office hour on Wednesday: 11am to 12pm
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Another False Proof Claim ”: P ( A ) P ( B ) = P ( A B ) Proof ”: Let S P(A) P(B). Then S P(A) or S P(B) So S A or S B So S A B Hence S P ( A B ) Let S P ( A B ) So S A B So x , x S x A B x , x S x A or x B S A or S B So S P ( A ) or S P ( B ) So S P ( A ) P ( B )
Background image of page 2
Functions In a programming language like C or Java, we declare functions like this: int f(int x) { // int argument, int return value return 2*x; } In general, a function each argument a unique return value The set from which arguments are drawn is called the domain The set from which return values are drawn is called the co-domain In our example, arguments and return values are both int s So, f : Z → Z and is defined by f ( x ) = 2 x
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Functions contd.
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/24/2010 for the course CS CS 173 taught by Professor Fleck during the Spring '10 term at University of Illinois, Urbana Champaign.

Page1 / 6

Am_lect_14 - Announcements Midterm 1 is on Wednesday Time Location 7pm to 9pm 141 Wohlers Hall Lecture on Wednesday is optional exam-related Q&A

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online