Week 1 1.websitewebsite 2.takehome examtakehome 3.Chapter 1.1 + Appendix A.

Slides:



Advertisements
Similar presentations
The Logic of Quantified Statements
Advertisements

Copyright © Cengage Learning. All rights reserved. CHAPTER 1 SPEAKING MATHEMATICALLY SPEAKING MATHEMATICALLY.
Review of Frequency Domain
Week 1 Chapter 1 + Appendix A Signals carry information Signals are represented by functions Systems transform signals Systems are represented by functions,
Linear Functions and Modeling
EECS 20 Chapter 21 Defining Signals and Systems Last time we Introduced mathematical notation to help define sets Learned the names of commonly used sets.
EECS 20 Lecture 1 (January 17, 2001) Tom Henzinger Motivation.
EECS 20 Chapter 21 Defining Signals and Systems Last time we Introduced mathematical notation to help define sets Learned the names of commonly used sets.
EECS 20 Lecture 3 (January 22, 2001) Tom Henzinger Sets, Tuples, Functions.
EECS 20 Lecture 2 (January 19, 2001) Tom Henzinger Mathematical Language.
EECS 20 Lecture 4 (January 24, 2001) Tom Henzinger Block Diagrams.
Function: Definition A function is a correspondence from a first set, called the domain, to a second set, called the range, such that each element in the.
Learning Objectives for Section 2.1 Functions
Functions. A function is a relation that has exactly one output for each input.
Graphing Linear Equations. What is a Linear Equation? A linear equation is an equation whose graph is a LINE. Linear Not Linear.
Graphing Linear Equations
1.2 Functions and Graphs. Functions Domains and Ranges Viewing and Interpreting Graphs Even Functions and Odd functions - Symmetry Functions Defined in.
1.1 Relations and Functions
2.4 Functions and Graphs Objective: Understand functions.
Functions Copyright © J. Mercer, A function is a number-machine that transforms numbers from one set called the domain into a set of new numbers.
Do Now 10/26/10 In your notebook, explain how you know a function is a function. Then answer if the following three tables are functions or not. x
4.4 Equations as Relations
Chapter 1 A Beginning Library of Elementary Functions
C ollege A lgebra Functions and Graphs (Chapter1) L:8 1 Instructor: Eng. Ahmed abo absa University of Palestine IT-College.
Chapter 1. Functions and Models
Formalizing Relations and Functions
Functional Relationships
Formal Methods in SE Lecture 20. Agenda 2  Relations in Z Specification Formal Methods in SE.
1 Week 2: Variables and Assignment Statements READING: 1.4 – 1.6 EECS Introduction to Computing for the Physical Sciences.
MATH 224 – Discrete Mathematics
Copyright © 2015, 2008, 2011 Pearson Education, Inc. Section 1.6, Slide 1 Chapter 1 Linear Equations and Linear Functions.
Programming Languages and Design Lecture 3 Semantic Specifications of Programming Languages Instructor: Li Ma Department of Computer Science Texas Southern.
Section 2.1. Section Summary Definition of sets Describing Sets Roster Method Set-Builder Notation Some Important Sets in Mathematics Empty Set and Universal.
Input Function x(t) Output Function y(t) T[ ]. Consider The following Input/Output relations.
Chapter 2 The Logic of Quantified Statements. Section 2.1 Intro to Predicates & Quantified Statements.
Data Structures and Algorithms Dr. Tehseen Zia Assistant Professor Dept. Computer Science and IT University of Sargodha Lecture 1.
Unit 2: Graphing Linear Equations and Inequalities.
Formalizing Relations and Functions
Temperature Readings The equation to convert the temperature from degrees Fahrenheit to degrees Celsius is: c(x) = (x - 32) The equation to convert the.
Graphing Linear Equations From the beginning. What is a Linear Equation? A linear equation is an equation whose graph is a LINE. Linear Not Linear.
Linear Expressions Chapter 3. What do you know about Linear Relations?
Onlinedeeneislam.blogspot.com1 Design and Analysis of Algorithms Slide # 1 Download From
PREDICATES AND QUANTIFIERS COSC-1321 Discrete Structures 1.
1 Introduction to Abstract Mathematics Chapter 3: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 3.1.
Domain: a set of first elements in a relation (all of the x values). These are also called the independent variable. Range: The second elements in a relation.
Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3.
Chapter 2 Linear Equations and Functions. Sect. 2.1 Functions and their Graphs Relation – a mapping or pairing of input values with output values domain.
Algebra 1 Section 4.2 Graph linear equation using tables The solution to an equation in two variables is a set of ordered pairs that makes it true. Is.
EQUATION IN TWO VARIABLES:
Section 1.6 Functions.
Input/Output tables.
Chapter 3 The Logic of Quantified Statements
FST Chapter 7 Review Questions.
Discrete Structure II: Introduction
Motivation EECS 20 Lecture 1 (January 17, 2001) Tom Henzinger.
Functions Introduction.
Mathematics for Computer Science MIT 6.042J/18.062J
Lesson – Teacher Notes Standard:
x-Value = The horizontal value in an ordered pair or input Function = A relation that assigns exactly one value in the range to each.
Class 33: Making Recursion M.C. Escher, Ascending and Descending
State Machines EECS 20 Lecture 8 (February 2, 2001) Tom Henzinger.
FUNCTIONS.
Discrete Mathematics Lecture 4 & 5: Predicate and Quantifier
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
7.2 Functions and Graphs Objective: Understand functions.
Unit 2.1 What is a Function?.
Introduction to Functions & Function Notation
Mathematical Language
Presentation transcript:

Week 1 1.websitewebsite 2.takehome examtakehome 3.Chapter Appendix A

EECS 20 Lecture 1 (January 21, 2001) from Tom Henzinger Motivation

BridgeStatic equations Aircraft Flight equations TEST SIMULATE CALCULATE REALITYMODEL

REALITYMODEL BridgeStatic equations Aircraft Flight equations TEST SIMULATE CALCULATE Abstract Build Predict

Piece of hardware??? Piece of software ??? Wrong questions for us! REALITYMODEL

Piece of information Transformer of information REALITYMODEL - audio - video - text - for communication - for computation - for storage

Piece of information Transformer of information REALITYMODEL - audio - video - text - for communication - for computation - for storage - for control “Signal” “System” State machines Linear differential equations Mathematical functions

Piece of information Transformer of information REALITYMODEL - audio - video - text - for communication - for computation - for storage “Signal” “System” State machines Linear equations Mathematical functions Abstract Implement Predict Simulate Calculate Specify design

Sound: Time  Air pressure Time Air pressure Signal

Low pass filter xy Sound: Time  Air pressure Filter: Input signals  Output signals Time Air pressure Signal InputOutput System

Sound: Time  Air pressure Time InputOutput Air pressure Signal System Function description System description Low pass filter xy Filter: Input signals  Output signals

EECS 20 Lecture 2 (January 23, 2001) from Tom Henzinger Mathematical Language

Each function has four things: 0 the name (f, g, sin, cos, sound, …) 1 the domain ( a set ) 2 the range ( a set ) 3 the graph or assignment ( for every domain element, a range element ) A signal is a function

Function examples sin, cos (names of functions) 1 Domain : Reals. 2 Range : [-1,1] = { x  Reals | -1  x  1 }. 3 Graph : for each real x, the real sin (x)  [-1,1].

Formally, the graph of a function is a set of pairs : { (x,y)  ( Reals  [-1,1] ) | y = sin ( x ) } = { …, (0,0), …, (  /2, 1), …, ( ,0), …, (3  /2,-1), … }. 1 0

1 Sets (unordered collections) 2 Tuples or product sets (ordered collections) 3 Functions Important Mathematical Objects

Mathematical Language Let Evens = { x | (  y, y  Nats  x = 2· y ) }.

Mathematical Language Let Evens = { x | (  y, y  Nats  x = 2· y ) }. Constants (names of something)

Mathematical Language Let Evens = { x | (  y, y  Nats  x = 2· y ) }. Constants Variables (can be replaced by constants)

Mathematical Language Let Evens = { x | (  y, y  Nats  x = 2· y ) }. Constants Variables Operators (work on expressions)

Mathematical Language Let Evens = { x | (  y, y  Nats  x = 2· y ) }. Constants Variables Operators Quantifiers (of variables)

Mathematical Language Let Evens = { x | (  y, y  Nats  x = 2· y ) }. Constants Variables Operators Quantifiers Definition (LHS = expression)

Defining a new set Evens from known set Nats Let Evens = { x | (  y, y  Nats  x = 2· y ) }. Constants Variables Operators Quantifiers Definition

Constants have meaning 20 a certain number Berkeley a certain city false a certain truth value

Variables have no meaning but can be substituted by constants x y 0 z’

Operators on numbers number + number Result: number number ! number number = number truth value number  number truth value

Operators on numbers number + number Result: number number ! number number = number truth value number  number truth value in matlab >> 3 == 5 ans = 0 (false) >> 3 == 3 ans =1 (true) assertion assignment

Operators on cities merge ( city, city ) Result: city population-of ( city ) number has-a-university ( city ) truth value

Operators on truth values truth value  truth value Result: truth value truth value  truth value truth value ¬ truth value truth value truth value  truth value truth value truth value  truth value truth value

Expressions of constants have meaning Result: 23 (3! + 2) ·  population-of ( Berkeley ) true 4 · 20  false true  false false true  ( ) not well-formed

Implication true  true Result: true true  false false false  true true false  false true

Expressions of variables have no meaning x + 20 (3! + y) · 4 x  y Free variables: x y x, y

Quantifiers remove free variables from expressions x = 0  x, x = 0  x, x = 0  y, x + 1 = y  x,  y, x + 1 = y  x,  y, x  y  x, x + 7 Result: free x true false free x true not well-formed

Every mathematical expression 1. is not well-formed (“type mismatch”), or 2. contains free variables, or 3. is a definition, or 4. has a meaning (e.g., 20, Berkeley, false).

SETS

Set constants { 1, 2, 3 } { Atlanta, Berkeley, Chicago, Detroit } { 1, 2, 3, 4, … }

Famous Sets RealsSet of all real numbers Reals + Set of all nonnegative real numbers IntegersSet of all integers Integers + Set of all nonnegative integers NaturalsSet of all positive integers {1, 2, …} Naturals 0 Set of all nonnegative integers (Integers + ) Bools{true, false} Charset of all alphanumeric characters Complexset of all complex numbers

Set operator element  set Result: truth value 2  { 1, 2, 3 } true 2  { Atlanta, Berkeley } false

Set quantifier (  x, predicate ) Result: truth value (  x, predicate ) truth value { x | predicate } set

Quantifiers remove free variables from expressions { x | x  y } { x | x = 1  x = 2 } { x |  y, x = 2· y } { x | x + 7 } Result: free y { 1, 2 } { 2, 4, 6, 8, … } not well-formed

Meaning of constants can be defined Let Nats = { 1, 2, 3, 4, … }. Let Bools = { true, false }. Define Cities = { Atlanta, Chicago, Berkeley, Detroit }. Define Ø = { }. explicitly as here,

or implicitly as here Let Evens = { x  Nats |  y  Nats, x = 2· y }. Let Evens be the set of all x  Nats such that x = 2· y for some y  Nats.

Additional operators on sets set  set Result: set set  set set set \ set set set  set truth value set = set truth value P ( set ) set

Meaning of additional operators can be defined  set X,  set Y, let X  Y = { z | z  X  z  Y }.  set X,  set Y, let X  Y = { z | z  X  z  Y }.  set X,  set Y, let X \ Y = { z | z  X  z  Y }.  set X,  set Y, let X  Y  (  z | z  X  z  Y ).  set X,  set Y, let X = Y  X  Y  Y  X.  set X, let P ( X ) = { Y | Y  X }.

TUPLES

Tuple constants ( 2, 7 ) 2-tuple (or “pair”) ( 2, 7, 1 ) 3-tuple (or “triple”) ( b, e, r, k, e, l, e, y ) 8-tuple Note: { 2, 7 } = { 7, 2 } ( 2, 7 )  ( 7, 2 )

Product sets set 1  set 2 Result: set of pairs set 1  set 2  set 3 set of triples set 1  set 2 = { (v,w) | v  set 1  w  set 2 } set 1  set 2  set 3 = { (u,v,w) | u  set 1  v  set 2  w  set 3 }

Product set example Set of pixels on an old VGA monitor (640x480), VGAScreen VGAScreen = {1, 2, …, 640} x {1, 2, …, 480}

FUNCTIONS

Each function has three things: 1 the domain ( a set ) 2 the range ( a set ) 3 the graph ( for every domain element, a range element )

Function constants sin, cos 1 Domain : Reals. 2 Range : [-1,1] = { x  Reals | -1  x  1 }. 3 Graph : for each real x, the real sin (x)  [-1,1].

Formally, the graph of a function can be thought of as a set of pairs : { (x,y)  ( Reals  [-1,1] ) | y = sin ( x ) } = { …, (0,0), …, (  /2, 1), …, ( ,0), …, (3  /2,-1), … }. 1 0

If domain and range of a function are finite, then the graph can be given by a table : true true true true false false false true false false false false x y f(x,y) = x  y

Function definition Let f : Domain  Range such that  x  Domain, f ( x ) = …

Let twice : Nats  Nats such that  x  Nats, twice ( x ) = 2· x. domain (twice) = Nats range (twice ) = Nats graph ( twice ) = { (1,2), (2,4), (3,6), (4,8), … }

Let exp : Nats 2  Nats such that  x, y  Nats, exp ( x, y ) = x y. domain ( exp ) = Nats 2 range ( exp ) = Nats graph ( exp ) = { ( (1,1), 1 ), …, ( (2,3), 8 ), … }

Let MySound be the signal or function MySound: Time  Air pressure such that graph(MySound) is: Time Air pressure

Two very important definitions [ set  set ] Result: set of functions function  function function

Their meaning  set X, Y, [X  Y ] = { f | domain ( f ) = X  range ( f ) = Y }.  f  [ X  Y ],  g  [ Y  Z ], g  f : X  Z such that  u  X, ( g  f ) ( u ) = g ( f ( u ) ).