The document discusses exploring image functions in a programming environment. It prompts the user to consider questions about the domain and range of different shape functions, why some functions require more inputs than others, what error messages may occur, and how to determine the contracts for image functions from examples provided. The user is asked to record contracts for image functions in a table after experimenting with functions in an editor.
Eric Ma and Mridul Seth - Network Analysis Made Simple An Introduction To Network Analysis and Applied Graph Theory Using Python and NetworkX-leanpub - Com (2021)
The document discusses exploring image functions in a programming environment. It prompts the user to consider questions about the domain and range of different shape functions, why some functions require more inputs than others, what error messages may occur, and how to determine the contracts for image functions from examples provided. The user is asked to record contracts for image functions in a table after experimenting with functions in an editor.
The document discusses exploring image functions in a programming environment. It prompts the user to consider questions about the domain and range of different shape functions, why some functions require more inputs than others, what error messages may occur, and how to determine the contracts for image functions from examples provided. The user is asked to record contracts for image functions in a table after experimenting with functions in an editor.
The document discusses exploring image functions in a programming environment. It prompts the user to consider questions about the domain and range of different shape functions, why some functions require more inputs than others, what error messages may occur, and how to determine the contracts for image functions from examples provided. The user is asked to record contracts for image functions in a table after experimenting with functions in an editor.
● square and star have the same Domain (Number, String, String) and Range (Image). Did you find any other shape functions with the same Domain and Range? ………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ● Does having the same Domain and Range mean that the functions do the same things?.......................... ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ● A lot of the Domains for shape functions are the same, but some are different. Why did some shape functions need more inputs than others?........................................................................................................ ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… SLIDE 20 Exploring Image Functions………………………………………………………………………………… ● Was it harder to find contracts for some of the functions than others? Why? …………………………... ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ● What error messages did you see? ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ● How did you figure out what to do after seeing an error message? ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ● Which input determined the size of the Rhombus? What did the other number determine? ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… SLIDE 21 Contracts Help Us Write Code Turn to Using Contracts and Using Contracts (continued) and experiment with the functions in the editor. ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… Once you've discovered how to build a version of each image function that satisfies you, record the example code in your contracts table. ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… It may help you to jot down some notes about your discoveries. We will be sharing our findings later. ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… SLIDE 22 Contracts Help Us Write Code ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ● What kind of triangle did triangle build? ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ● Only one of the inputs was a number. What did that number tell the computer? ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ● What other numbers did the computer need to already know in order to build the triangle function? ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ● If we wanted to build an isosceles triangle or a right triangle, what additional information would the computer need to be given? ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ……………………………………………………………………………………………………………… ………………………………………………………………………………………………………………
Eric Ma and Mridul Seth - Network Analysis Made Simple An Introduction To Network Analysis and Applied Graph Theory Using Python and NetworkX-leanpub - Com (2021)