Hauptsatz der Differential- und Integralrechnung: Unterschied zwischen den Versionen
Markierung: Zurückgesetzt |
Markierung: Zurückgesetzt |
||
| Zeile 91: | Zeile 91: | ||
[-2.0, 2.0], c1 | [-2.0, 2.0], c1 | ||
], { | ], { | ||
withLabel | withLabel: false, // Wir setzen das Label manuell als JSXGraph-Text | ||
baseLeft: { visible: true, fixed: false, withLabel: true, name: 'a' }, | baseLeft: { visible: true, fixed: false, withLabel: true, name: 'a' }, | ||
baseRight: { visible: true, fixed: false, withLabel: true, name: 'b' } | baseRight: { visible: true, fixed: false, withLabel: true, name: 'b' } | ||
}); | }); | ||
// LaTeX-Text für das Integral | |||
var integralText = board.create('text', [0, 4, ''], { fontSize: 16, useMathJax: true }); | |||
// Funktion zum Aktualisieren des Labels mit MathJax-Neurendering | // Funktion zum Aktualisieren des Labels mit MathJax-Neurendering | ||
| Zeile 107: | Zeile 104: | ||
const b = i1.baseRight.X().toFixed(2); | const b = i1.baseRight.X().toFixed(2); | ||
const value = i1.Value().toFixed(4); | const value = i1.Value().toFixed(4); | ||
integralText.setText(`\\[\\int_{${a}}^{${b}} f(t) \\, dt = ${value}\\]`); | |||
MathJax.typesetPromise(); // MathJax erneut rendern | MathJax.typesetPromise(); // MathJax erneut rendern | ||
} | } | ||