randRange( 1, 9 ) randRange( 1, 9 ) randRange( N1 + N2 + 1, 20 )

fraction( N1, D ) + fraction( N2, D ) = {?}

( N1 + N2 ) / D
init({ range: [ [-3, 3], [-3, 3] ], scale: 25 }); piechart( [ N1, D - N1 ], ["#e00", "#999"], 2 );
init({ range: [ [-3, 3], [-3, 3] ], scale: 25 }); piechart( [ N2, D - N2 ], ["#e00", "#999"], 2 );

Dodaj liczniki.

init({ range: [ [-3, 3], [-3, 3] ], scale: 25 }); piechart( [ N1+N2, D - N2 - N1], ["#e00", "#999"], 2 );

fraction( N1, D ) + fraction( N2, D ) = fraction( N1 + N2, D )

Uprość.

init({ range: [ [-3, 3], [-3, 3] ], scale: 25 }); piechart( [ reduce( N1 + N2, D)[0], reduce( N1 + N2, D)[1] - reduce( N1 + N2, D)[0]], ["#e00", "#999"], 2 );

fraction( N1 + N2, D ) = fractionReduce( N1 + N2, D )