\( \newcommand{\br}[1]{\left( #1\right)} \newcommand{\logpar}[1]{\log\left( #1\right)} \newcommand{\cospar}[1]{\cos\left( #1\right)} \newcommand{\sinpar}[1]{\sin\left( #1\right)} \newcommand{\tanpar}[1]{\tan\left( #1\right)} \newcommand{\arcsinpar}[1]{\sin^{-1}\!\left( #1\right)} \newcommand{\arccospar}[1]{\cos^{-1}\!\left( #1\right)} \newcommand{\arctanpar}[1]{\tan^{-1}\!\left( #1\right)} \newcommand{\asin}[1]{\sin^{-1}\! #1} \newcommand{\acos}[1]{\cos^{-1}\! #1} \newcommand{\atan}[1]{\tan^{-1}\! #1} \newcommand{\asinh}[1]{\sinh^{-1}\! #1} \newcommand{\acosh}[1]{\cosh^{-1}\! #1} \newcommand{\atanh}[1]{\tanh^{-1}\! #1} \newcommand{\logten}[1]{\log_{10}\! #1} \definecolor{explaination}{RGB}{0, 166, 226} \newcommand{\ubrace}[2][u]{ { \color{explaination}{\underbrace{ {\color{black}{#2}} }_{#1}} } } \newcommand{\obrace}[2][u]{ { \color{explaination}{\overbrace{ {\color{black}{#2}} }^{#1}} } } \definecolor{highlight}{RGB}{181, 41, 118} \newcommand{\xplain}[1]{{ \textcolor{explaination} { \footnotesize{ #1 \newline}}}} \newcommand{\hilite}[1]{{ \textcolor{highlight} { { #1 }}}} \definecolor{lightergray}{gray}{.675} \newcommand{\hide}[1]{{ \textcolor{lightergray} { \footnotesize{ #1 \newline}}}} \newcommand{\mth}[1]{ { \textcolor{black} { { \small #1 } } } } \)

Übung: Teiler

randRange(4, 24) getFactors(NUMBER)

Was sind die Teiler von NUMBER?

Die Box enthält NUMBER Punkte. Indem du ihre Größe veränderst kannst du alle Teiler finden.

init({ range: [[-3, NUMBER + 3], [-NUMBER - 3, 3]], scale: [20, 20] }); addMouseLayer(); graph.width = NUMBER; graph.height = 1; graph.set = bogusShape; graph.handle = bogusShape; graph.topLabel = bogusShape; graph.leftLabel = bogusShape; graph.redraw = function() { graph.set.remove(); graph.topLabel.remove(); graph.leftLabel.remove(); graph.height = ceil(NUMBER / graph.width); init({ range: [[-3, graph.width + 3], [-graph.height - 2, 3]], scale: [20, 20] }); graph.set = raphael.set(); graph.set.push(path([ [-1, 1], [graph.width, 1], [graph.width, -graph.height], [-1, -graph.height], [-1, 1], [1, 1]],{ stroke: BLUE, opacity: 1.0 })); _(NUMBER).times(function(i) { graph.set.push(circle([i % graph.width, -floor(i / graph.width)], 0.25, { stroke: BLUE, fill: BLUE, opacity: 0.6 })); }); graph.handle.translate( graph.width * 20 - graph.handle[0].attr("translation").x, graph.height * 10 - graph.handle[0].attr("translation").y); graph.topLabel = label([graph.width / 2 - 0.5, 1], graph.width, "above"); graph.leftLabel = label([-1, -graph.height / 2 + 0.5], graph.height, "left"); }; graph.dragHandle = addMovablePoint({ coord: [graph.width, -graph.height / 2 + 0.5], constraints: { constrainY: true }, snapX: 1, onMove: function(x, y) { graph.width = min(max(x, 1), NUMBER); graph.redraw(); return [graph.width, -graph.height / 2 + 0.5]; } }); graph.handle = raphael.set(); graph.handle.push(line( [-0.12, 0], [-0.12, 1], { stroke: BLUE, opacity: 1.0 })); graph.handle.push(line( [0.12, 0], [0.12, 1], { stroke: BLUE, opacity: 1.0 })); graph.dragHandle.visibleShape.remove(); graph.dragHandle.mouseTarget.attr({ scale: 2.0 }); $(graph.dragHandle.mouseTarget[0]).bind("vmouseover", function(event) { graph.handle.animate({ scale: 1.5, stroke: BLUE }, 50); }); $(graph.dragHandle.mouseTarget[0]).bind("vmouseout", function(event) { graph.handle.animate({ scale: 1.0, stroke: BLUE }, 50); }); graph.redraw();
FACTOR

Gibt in jedes Eingabefeld einen Teiler ein:







Die NUMBER Punkte können in NUMBER / FACTOR Zeile angeordnet werden.Die NUMBER Punkte können in NUMBER / FACTOR Zeilen angeordnet werden. Jede Zeile hat FACTOR Punkt, daher ist NUMBER / FACTOR ein Teiler von NUMBER:Jede Zeile hat FACTOR Punkte, daher ist NUMBER / FACTOR ein Teiler von NUMBER:

graph.width = FACTOR; graph.height = ceil(NUMBER / graph.width); init({ range: [[-3, graph.width + 3], [-graph.height - 2, 3]], scale: [7, 7] }); graph.set = raphael.set(); graph.set.push(path([ [-1, 1], [graph.width, 1], [graph.width, -graph.height], [-1, -graph.height], [-1, 1], [1, 1]],{ stroke: BLUE, opacity: 1.0 })); _(NUMBER).times(function(i) { graph.set.push(circle([i % graph.width, -floor(i / graph.width)], 0.25, { stroke: BLUE, fill: BLUE, opacity: 0.6 })); });

Die Teiler von NUMBER sind: toSentenceTex(FACTORS.reverse(), function(){return true;}, "hint_pink").