-3 3 randRangeNonZero(-6, 6) randRange(2, 18) NUMERATOR / DENOMINATOR NUMERATOR % DENOMINATOR (NUMERATOR - M_NUMERATOR) / DENOMINATOR (abs(SOLUTION) > 1 ? M_WHOLE + (SOLUTION < 0 ? fraction(M_NUMERATOR, -DENOMINATOR) : fraction(M_NUMERATOR, DENOMINATOR)) : fraction(NUMERATOR, DENOMINATOR)) 0 IS_MIXED === 1 && abs(SOLUTION) > 1 ? M_NUMBER : fraction(NUMERATOR, DENOMINATOR)

Liiguta \color{orange}{\text{oranž täpp}} murru \color{orange}{NUMBER} asukohta arvteljel.

init({ range: [ [LOWER_BOUND - 1, UPPER_BOUND + 1], [-1, 1] ], scale: [80, 40] }); style({arrows: ">"}); line( [ 0, 0 ], [ UPPER_BOUND + 0.25, 0 ] ); style({arrows: "->"}); line( [ 0, 0 ], [ LOWER_BOUND - 0.25, 0 ] ); style({arrows: ""}); for ( var x = LOWER_BOUND; x <= UPPER_BOUND; x++ ) { line( [ x, -0.2 ], [ x, 0.2 ] ); } style({ stroke: GREEN, strokeWidth: 3.5 }); line( [ LOWER_BOUND, -0.2], [LOWER_BOUND, 0.2]); label( [ LOWER_BOUND, -0.53 ], LOWER_BOUND, "center", { color: GREEN }); line( [ UPPER_BOUND, -0.2], [UPPER_BOUND, 0.2]); label( [ UPPER_BOUND, -0.53 ], UPPER_BOUND, "center", { color: GREEN }); line( [ 0, -0.2], [0, 0.2]); label( [ 0, -0.53 ], "0", "center", { color: GREEN }); addMouseLayer(); this.movablePoint = addMovablePoint({ constraints: { constrainY: true }, snapX: 1 / DENOMINATOR }); movablePoint.onMove = function( x, y ) { if (x < LOWER_BOUND || UPPER_BOUND < x) { return false; // don't allow the point to move past the bounds } jQuery("#solutionarea input").val((roundTo(5, x)+'').replace('.', ',') ); };
Liiguta oranž täpp õige vastuse juurde.

Kuna \color{orange}{NUMBER} on positiivnenegatiivne, tuleb oranži täppi liigutada arvteljel nullist paremalevasakule.

Teisendame liigmurru \color{orange}{NUMBER} segaarvuks:

\color{orange}{NUMBER} = \color{blue}{M_NUMBER}

Seetõttu \color{blue}{M_NUMBER} asub arvteljel \color{green}{M_WHOLE} ja \color{green}{M_WHOLE + (SOLUTION > 1 ? 1 : -1)} vahel.

style({ stroke: "#FFA500", strokeWidth: 3.5 }); line( [M_WHOLE, -0.2], [M_WHOLE, 0.2]); line( [M_WHOLE + (SOLUTION > 0 ? 1 : -1), -0.2], [M_WHOLE + (SOLUTION > 0 ? 1 : -1), 0.2]);

\color{blue}{M_NUMBER} on arvteljel \color{green}{M_WHOLE}st \color{green}{fraction(M_NUMERATOR, DENOMINATOR)} võrra paremalvasakul.

style({ stroke: GREEN, fill: "#6495ED", strokeWidth: 3.5, arrows: "->" }); line( [ M_WHOLE, 0 ], [ SOLUTION, 0 ] ); movablePoint.visibleShape.toFront(); style({ stroke: "#FFA500", strokeWidth: 3.5, arrows: "" }); line( [M_WHOLE, -0.2], [M_WHOLE, 0.2]); line( [M_WHOLE + (SOLUTION > 0 ? 1 : -1), -0.2], [M_WHOLE + (SOLUTION > 0 ? 1 : -1), 0.2]);
label( [ SOLUTION, -0.83 ], NUMBER, "center", { color: "#FFA500" }); movablePoint.moveTo( SOLUTION, 0 );

Oranž number näitabki murru \color{orange}{NUMBER} asukohta arvteljel.

(sulge)
ülesanne Selline on ülesanne alusta selle lahendamist.
Vajad abi? Vaata vihjet. See tegevus nullib sinu praegused punktid!
 
Tagasiside