Hauptsatz der Differential- und Integralrechnung: Unterschied zwischen den Versionen

Markierung: Zurückgesetzt
Markierung: Manuelle Zurücksetzung
Zeile 33: Zeile 33:
* Liegt der Graph von <math>f</math> unterhalb der x-Achse, ist das bestimmte Integral negativ.
* Liegt der Graph von <math>f</math> unterhalb der x-Achse, ist das bestimmte Integral negativ.
* Liegt der Graph von <math>f</math> sowohl unterhalb als auch oberhalb der x-Achse, ist das bestimmte Integral die Differenz aus dem oberen Flächeninhalt und dem unteren Flächeninhalt.
* Liegt der Graph von <math>f</math> sowohl unterhalb als auch oberhalb der x-Achse, ist das bestimmte Integral die Differenz aus dem oberen Flächeninhalt und dem unteren Flächeninhalt.
<html>
<html>
<head>
<head>
Zeile 40: Zeile 41:
</head>
</head>
<body>
<body>
     <div id="box2" style="width:15%; aspect-ratio:3/2; margin-top:20px;"></div>
     <div id="box2" style="width:20%; aspect-ratio:3/2; margin-top:20px;"></div>
     <script type="text/javascript">
     <script type="text/javascript">
         JXG.Options.text.useMathJax = true;       
         JXG.Options.text.useMathJax = true;       
         // JSXGraph-Board erstellen
         // Zweites JSXGraph-Board
         var board = JXG.JSXGraph.initBoard('box2', {
         var board = JXG.JSXGraph.initBoard('box2', { // Korrektur: 'box2' statt 'divid'
             boundingbox: [-5, 5, 5, -5], // Angepasste Boundingbox für die Skalierung
             boundingbox: [-5, 5, 8, -5], // Angepasste Boundingbox für die Skalierung
             axis: true,
             axis: true,
             showCopyright: false,
             showCopyright: false,
Zeile 84: Zeile 85:
         // Funktion erstellen
         // Funktion erstellen
         var c1 = board.create('functiongraph', [function(t) {
         var c1 = board.create('functiongraph', [function(t) {
             return (Math.pow(t, 5) / 24 - Math.pow(t, 3) / 2 + t;
             return (Math.pow(t, 5) / 24 - Math.pow(t, 3) / 2 + t);
         }]);
         }]);


Zeile 114: Zeile 115:
             }
             }
         });
         });
 
        //document.getElementById('output').value = integral.Value() + ' ' + integral.label.plaintext;
         // Integral-Label anpassen
         // Integral-Label anpassen
         i1.label.setText(() => {
         i1.label.setText(() => {
Zeile 120: Zeile 121:
             const b = i1.baseRight.X().toFixed(2); // Obere Grenze
             const b = i1.baseRight.X().toFixed(2); // Obere Grenze
             const value = i1.Value().toFixed(4); // Wert des Integrals
             const value = i1.Value().toFixed(4); // Wert des Integrals
             return `\\[\\int_{${a}}^{${b}} f(x) \\, dx = ${value}\\]`;
             return `\\[\\int_{${a}}^{${b}} f(t) \\, dt = ${value}\\]`;
         });
         });
        // MathJax nach jeder Änderung neu ausführen
        i1.label.onUpdate = function() {
            // MathJax neu rendern
            if (typeof MathJax !== 'undefined' && MathJax.typesetPromise) {
                MathJax.typesetPromise();
            }
        };
         // Beschriftung der Funktion mit f
         // Beschriftung der Funktion mit f
         board.create('text', [3.5, 3, 'f'], {
         board.create('text', [3.5, 3, 'f'], {