Mueve el \color{orange}{\text{ORANGE_DOT}} a \color{orange}{fraction(NUMERATOR, DENOMINATOR)} en la recta numérica.
init({range:[[LOWER_BOUND-.1,UPPER_BOUND+.1],[-1,1]],scale:[80*SCALE,40]}),style({arrows:">"}),line([LOWER_BOUND,0],[UPPER_BOUND+.25/SCALE,0]),style({arrows:""});for(var x=LOWER_BOUND;UPPER_BOUND>=x;x+=1/DENOMINATOR)line([x,-.2],[x,.2]);style({stroke:BLUE,strokeWidth:3.5}),line([LOWER_BOUND,-.2],[LOWER_BOUND,.2]),label([LOWER_BOUND,-.53],LOWER_BOUND,"center",{color:BLUE}),line([UPPER_BOUND,-.2],[UPPER_BOUND,.2]),label([UPPER_BOUND,-.53],UPPER_BOUND,"center",{color:BLUE}),addMouseLayer(),graph.movablePoint=addMovablePoint({constraints:{constrainY:!0},snapX:.25/DENOMINATOR}),graph.movablePoint.onMove=function(e,r){return[min(max(LOWER_BOUND,e),UPPER_BOUND),r]}
Mueve el punto anaranjado para seleccionar tu respuesta.
graph.movablePoint.coord[0]
return 0===guess?"":abs(SOLUTION-guess)<.001
graph.movablePoint.setCoord([guess,0])
Arriba hemos dibujado la recta numérica de 0 a 1, dividida en partes iguales.
La recta numérica esta dividida en DENOMINATOR piezas iguales, cada pieda representa fraction(1, DENOMINATOR).
style({stroke:"#6495ED",fill:"#6495ED",strokeWidth:3.5,arrows:"->"}),line([0,0],[SOLUTION,0]),graph.movablePoint.visibleShape.toFront()
El punto anaranjado debe desplazarse NUMERATOR segmento hacia delante, ya que fraction(NUMERATOR, DENOMINATOR) = NUMERATOR*fraction(1, DENOMINATOR)
El punto anaranjado debe desplazarse NUMERATOR segmentos hacia delante, ya que fraction(NUMERATOR, DENOMINATOR) = NUMERATOR*fraction(1, DENOMINATOR)
label([SOLUTION,-.83],fraction(NUMERATOR,DENOMINATOR),"center",{color:"#FFA500"}),graph.movablePoint.moveTo(SOLUTION,0)
El punto anaranjado muestra dónde está \color{orange}{fraction(NUMERATOR, DENOMINATOR)} en la recta numérica.