Learning Objective: …mrrogove.weebly.com/uploads/4/3/0/0/43009773/lesson_97... · 2018-09-11 ·...

5
Name: ___________________________________ Math 7.2, Period _____________ Mr. Rogove Date: _______________ Lesson 97: The Graph of a Function 1 Learning Objective: We will use rudimentary computer programming to explain the graph of a function. (Lesson 97) Activating Prior Knowledge: We have plotted linear equations on coordinate planes before. Graph ! = 10 4! Graph 2! + 3! = 12 Concept Development: “Pseudocode” What is the domain of the variable x? If f is a function given by evaluating the expression 2 ! for a number x, what is the domain of the function given by the program? What is the range of f? Declare x integer For all x from 1 to 5 Print 2 ! Next x.

Transcript of Learning Objective: …mrrogove.weebly.com/uploads/4/3/0/0/43009773/lesson_97... · 2018-09-11 ·...

Page 1: Learning Objective: …mrrogove.weebly.com/uploads/4/3/0/0/43009773/lesson_97... · 2018-09-11 · Name:&_____& & Math7.2,Period_____& Mr.Rogove& & Date:_____& 1& Lesson&97:&TheGraphof&aFunction&

Name:&___________________________________& & Math&7.2,&Period&_____________&Mr.&Rogove& & Date:&_______________&

Lesson&97:&The&Graph&of&a&Function&1&

Learning Objective:&We&will&use&rudimentary&computer&programming&to&explain&the&graph&of&a&function.&&(Lesson&97)&&Activating Prior Knowledge: We&have&plotted&linear&equations&on&coordinate&planes&before.&

Graph&! = 10− 4!& Graph&2! + 3! = −12&&&&&&&&&&&&&&&&&&&&Concept Development: “Pseudocode”*

&&&&&&&&

What&is&the&domain&of&the&variable&x?&&&If&f&is&a&function&given&by&evaluating&the&expression&2!&for&a&number&x,&what&is&the&domain&of&the&function&given&by&the&program?&&&&What&is&the&range&of&f?&&

Declare&x&integer&For&all&x&from&1&to&5&

Print&2! &&

Next&x.&&

Page 2: Learning Objective: …mrrogove.weebly.com/uploads/4/3/0/0/43009773/lesson_97... · 2018-09-11 · Name:&_____& & Math7.2,Period_____& Mr.Rogove& & Date:_____& 1& Lesson&97:&TheGraphof&aFunction&

Name:&___________________________________& & Math&7.2,&Period&_____________&Mr.&Rogove& & Date:&_______________&

Lesson&97:&The&Graph&of&a&Function&2&

&“More*pseudocode”*

&&&&&&&&&*

*&&What&is&different&about&this&code??&

&&&&&

****

Set*Builder*Notation*This&can&be&a&way&to&quickly&write&a&set&similar&to&what&we&built&above&using&our&pseudocode.&&Written&as&follows:&&

!"#$!!"!!"!#!$%! !"#$%&%"#!!"!!"#ℎ!!"!#!$%}!&!"&

!{ !, ! ! !! ∈ !}&&&Example:&

!, 2! + 3 !!!"#$%$&, 2 ≤ ! ≤ 8}&&&&

Declare&x&integer&Initial&!!as!{!}&For&all&x&from&2&to&8&

Append&(!,2! + 3)!to!!&&

Next&x.&Print&G&&

Declare&x&real&Let&!(!) = 2! + 3&Initialize&G&as&{&}&For&all&x&such&that&2 ≤ ! ≤ 8&&& Append&!!, !(!)!to!!&Next&x.&Plot&G.&&

Page 3: Learning Objective: …mrrogove.weebly.com/uploads/4/3/0/0/43009773/lesson_97... · 2018-09-11 · Name:&_____& & Math7.2,Period_____& Mr.Rogove& & Date:_____& 1& Lesson&97:&TheGraphof&aFunction&

Name:&___________________________________& & Math&7.2,&Period&_____________&Mr.&Rogove& & Date:&_______________&

Lesson&97:&The&Graph&of&a&Function&3&

Practice: Generate&the&appropriate&output&based&on&the&code:&&

&&&&&&&&&&&&&

&What&is&the&input&value&for&each&step&of&the&‘for&next’&loop?&&&&&What&is&the&domain?&&&&&What&is&the&range?&&&&&Can&we&write&the&set&of&ordered&pairs&for&the&graph&of&f?&&&

&&&&&&&&&&&&&

&What&is&the&output&value&for&each&step&in&the&‘for&next’&loop?&&&&What&is&the&domain?&&&&&What&is&the&range?&&&&&Can&we&write&the&set&of&ordered&pairs&for&the&graph&of&f?&&&&&&

Declare&x&real&Let&!(!) = !! + 1&Initialize&G&as&{&}&For&all&x&such&that&−2 ≤ ! ≤ 3&&& Append&!!, !(!)!to!!&Next&x.&Plot&G.&&

Declare&x&real&Let&!(!) = 2! &Initialize&G&as&{&}&For&all&x&such&that&0 ≤ ! ≤ 4&&& Append&!!, !(!)!to!!&Next&x.&Plot&G.&&

Page 4: Learning Objective: …mrrogove.weebly.com/uploads/4/3/0/0/43009773/lesson_97... · 2018-09-11 · Name:&_____& & Math7.2,Period_____& Mr.Rogove& & Date:_____& 1& Lesson&97:&TheGraphof&aFunction&

Name:&___________________________________& & Math&7.2,&Period&_____________&Mr.&Rogove& & Date:&_______________&

Lesson&97:&The&Graph&of&a&Function&4&

**************

***

******

*****

*******

&&

Declare&x&integer&Let&!(!) = 3!! &Initialize&G&as&{&}&For&all&x&such&that&−3 ≤ ! ≤ 3&&& Append&!!, !(!)!to!!&Next&x.&Plot&G.&&

Declare&x&real&Let&!(!) = !!&Initialize&G&as&{&}&For&all&x&such&that&−2 ≤ ! ≤ 2&&& Append&!!, !(!)!to!!&Next&x.&Plot&G.&&

Declare&x&integer&Let&!(!) = 3 ∙ 2! &Initialize&G&as&{&}&For&all&x&such&that&0 ≤ ! ≤ 6&&& Append&!!, !(!)!to!!&Next&x.&Print&G.&&

Declare&x&integer&Let&!(!) = 2! − 5&For&all&x&such&that&0 ≤ ! ≤ 3&&& Print&!(!)&Next&x.&&

Page 5: Learning Objective: …mrrogove.weebly.com/uploads/4/3/0/0/43009773/lesson_97... · 2018-09-11 · Name:&_____& & Math7.2,Period_____& Mr.Rogove& & Date:_____& 1& Lesson&97:&TheGraphof&aFunction&

Name:&___________________________________& & Math&7.2,&Period&_____________&Mr.&Rogove& & Date:&_______________&

Lesson&97:&The&Graph&of&a&Function&5&

Independent Practice: &&&Closure: Give&out&exit&ticket?&&&Notes: This&maps&to&lesson&11&from&ENY&Module&3,&Alg&1.&&&&&