Démarrer exercice…

\mbox{Résoudre l'équation suivante (arrondir la solution à 10^{-2}) :}

\mbox{Réponse : }

Valider

Question suivante…

accueil: true
n = Random(1, 2)
liste1 = Sequence(i, i, -100, 100)
d = RandomElement(Remove[liste1, {0}])
b = RandomElement(Remove[liste1, {0}])
a = RandomElement(Remove[liste1, {0}])
c = RandomElement(Remove[liste1, {0, a}])
l_n = Sequence(i, i, 4, 8, 2)
ChampTexte1 = Textfield(txt_prop)
prop = NaN
texte2: "\mbox{Ma réponse est : }" + (LaTeX[prop]) + ""
score = 2
essais = 4
juste = false
max: 5
stop = false
texte3: "\mbox{Score : }" + (LaTeX[score]) + " / " + (LaTeX[essais]) + ""
l_exo = Sequence(RandomElement[liste1], i, 1, n)
corriger = false
rep: round(If[n ≟ 1, (c - b) / a, (d - b) / (a - c)], 2)
grade: score
t_1 = If(Mod[(100 * (c - b)), a] ≟ 0, true, false)
t_2 = If(Mod[(100 * (d - b)), a - c] ≟ 0, true, false)
texte6: "" + (LaTeX[a]) + "x\ " + (LaTeX[If[b > 0, "+"]]) + "" + (LaTeX[b]) + "=" + (LaTeX[c]) + ""
texte5: "" + (LaTeX[a]) + "x= " + (LaTeX[c]) + "" + (LaTeX[If[b < 0, "+"]]) + "" + (LaTeX[(-b)]) + "
\\" + (LaTeX[a]) + "x = " + (LaTeX[c - b]) + "
\\x = \frac{ " + (LaTeX[c - b]) + "}{" + (LaTeX[a]) + "}
\\x " + (LaTeX[If[t_1, "=", "≈"]]) + "" + (LaTeX[rep]) + ""
texte4: "" + (LaTeX[a]) + "x\ " + (LaTeX[If[c < 0, "+"]]) + "" + (LaTeX[(-c)]) + "x\ =\ " + (LaTeX[d]) + "\ " + (LaTeX[If[b < 0, "+"]]) + "\ " + (LaTeX[(-b)]) + "
\\" + (LaTeX[a - c]) + "x\ =\ " + (LaTeX[d - b]) + "
\\x\ =\frac{" + (LaTeX[d - b]) + "}{" + (LaTeX[140]) + "}
\\x\ " + (LaTeX[If[t_2, "=", "≈"]]) + "\ " + (LaTeX[rep]) + ""
texte7: "" + (LaTeX[a]) + "x\ " + (LaTeX[If[b > 0, "+"]]) + "" + (LaTeX[b]) + "\ = " + (LaTeX[c]) + "x\ " + (LaTeX[If[d > 0, "+"]]) + "" + (LaTeX[d]) + ""