For each of the Tables below, define corresponding function using Pyret code and function notation. We’ve started the first function out for you. (Note: The tables have been turned on their sides, to save space!)

1

x

0

1

2

3

4

y

-2

0

2

4

6

fun f(x):
end
fx =

2

x

-2

-1

0

1

2

y

-2

-1

0

1

2

3

x

-5

-4

-3

-2

-1

y

9

7

5

3

1

4

x

1

2

3

4

5

y

-1

-2

-3

-4

-5

5

x

9

10

11

12

13

y

14

16

18

20

22

6

x

20

21

22

23

24

y

15

15.5

16

16.5

17

These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, and 1738598). CCbadge Bootstrap by the Bootstrap Community is licensed under a Creative Commons 4.0 Unported License. This license does not grant permission to run training or professional development. Offering training or professional development with materials substantially derived from Bootstrap must be approved in writing by a Bootstrap Director. Permissions beyond the scope of this license, such as to run training, may be available by contacting contact@BootstrapWorld.org.