Defining a function in CL

I am trying to define two linear functions in the graph on screen 3, “f_1” and “f_2”, that have slopes equal to 35 divided by the mean of values from tables (from screens 1 & 2) and y-ints equal to the x-values of movable points on the graph. Can anyone help?

Here is the activity: [Copy of] The T-Rex and the Bear • Activity Builder by Desmos

Rather than populating f_1 using simpleFunction and a complicated string, I would just populate the values c_1, c_2, etc… into the graph and define the function there, like this:

Also, I took a look through your first few screens and inserting three (rounded) random numbers into the graph doesn’t require quite as much complexity as this. Take a look at the first screen here:

Each invocation of the random number generator will create a new random value. Consider this code:

r = randomGenerator()

number("r_1"): r.float(3.5, 4.5)
number("r_2"): r.float(3.5, 4.5)
number("r_3"): r.float(3.5, 4.5)

r_1, r_2 and r_3 will already be three different numbers, since the generator is invoked three different times.

Wow! That is much easier! Thanks!

Oh my, I don’t know why I didn’t think of that! Thank you!