# Checking slope between moveable and fixed point

I am trying to do 2 things in this activity: Mystery Figures

1. On slide 6, I’m wanting them to drag point E to create a Kite, so the coordinates need to be something like (e_1, e_2 <1). Is it possible to check for this when they hit the submit button? I just can’t figure out how to make it happen.

2. Once they’ve made the kite, I want them to provide evidence on slide 7 that it truly is a kite by completing the table. I will probably change the first two cells to calculate the distance instead of slope, which I think I can handle. It’s the next two cells that I will need some help with. Right now I have it trying to calculate the slope between point S and point E, which you’ll see in graph 6 as S_SE, and same with the slope between point R and point E (S_RE). I can’t seem to figure out how to have it check when the student has typed in the matching slope value to what’s calculated for S_SE or S_RE. What would that CL look like? …and if I decide to change it to the distance instead of slope, I think I can handle the calculation piece in graph 6, but would that be the same kind of CL in table 6 to check it?

Any help would be much appreciated! I’m sooo close to being done with this!

I figured out my own answer to #1 above this morning, but still can’t figure out how to make #2 happen.

Try this:
cellContent(3, 2):
when table6.submitted (when this.cellNumericValue(3,1)= graph6.number(`S_{SE}`) “” otherwise “ Try again.”) otherwise “”

cellContent(4, 2):
when table6.submitted (when this.cellNumericValue(4,1)= graph6.number(`S_{RE}`) “” otherwise “ Try again.”) otherwise “”

you were on the right track. Just had typos in location of cells and needed { } on variable subscript

That worked perfectly! Thank you so much!

Would you be willing to share your activity with me so that I can see your coding? I want to have a quadratic function on a graph with a fixed point and a moveable point. I can’t seem to find an example to look at the coding and I think yours might be what I’m looking for. Thank you in advance.

1 Like