Übung: Parabeln interaktiv
randRangeNonZero( -3, 3 )
randRangeNonZero( -5, 5 )
randRangeNonZero( -5, 5 )
Passe die Koeffizienten der blauen Parabel an, damit sie mit der orangefarbenen Parabel übereinstimmt.
Wie verändert sich die Form und die Position der Parabel, wenn diese Zahlen verändert werden?
graphInit({
range: 10,
scale: 20,
tickStep: 1,
axisArrows: "<->"
});
style({
stroke: MatheguruHelper.ORANGE,
fill: "none",
clipRect:[[-10, -10], [20, 20]],
arrows: null
});
plot(new Parabola(A, X1, Y1).graphieFunction, [-10, 10]);
style({
stroke: MatheguruHelper.BLUE,
strokeWidth: 3,
fill: "none",
clipRect:[[-10, -10], [20, 20]],
arrows: null
});
graph.currParabola = new Parabola(1, 0, 0);
graph.currParabola.plot();
y - 0 = 1(x - 0)^{2}
[A, X1, Y1]
var parab = graph.currParabola;
return parab.getLeadingCoefficient() === A &&
parab.getVertexX() === X1 &&
parab.getVertexY() === Y1;
guess = guess.length ? guess : [1, 0, 0];
var parab = graph.currParabola;
parab.update.apply(parab, guess);
redrawParabola(false);
guess = guess.length ? guess : [1, 0, 0];
var a = guess[0],
x = guess[1],
y = guess[2];
var equation = "y - " + y + "=" + a + "(x - " + x + ")^{2}";
equation = cleanMath(equation);
$("#equation-label").html("<code>" + equation + "</code>").tex();