I am trying to make this interactive to help count distance between points that slide on the number line, but when the points are both on the positive side, the jump is off by one. Can someone help me with the math for this?
I don’t see it in there (and didn’t delve into it), but there is a distance function in the calculator.
I don’t need help calculating the distance, though. I need help getting the function that shows unit jumping to stay in between the two slide-able points. I am having a hard time explaining it - I had hoped by linking it, some could see what I mean by student view. When the points are both on the positive side, my graph shows an extra jump to the left.
Oops. Got it. Maybe some max( ) min( ) integrated into your functions. (I’m being a little lazy with trying to follow your graph.)
Wait, never mind, I figured it out. I finally got the bounds right. I just needed to walk away and leave it alone for a bit. Thank you for looking!