For each of the Tables below, define corresponding function using Pyret code and function notation.
We’ve complete the first one as an example.

1

x

0

1

2

3

4

y

-5

-2.5

0

2.5

5

fun f(x): (2.5 * x) - 5 end

$$\displaystyle f(x) = \frac{5}{2}x - 5$$

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.5

-4

-5.5

-6

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, 1738598, 2031479, and 1501927). 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.