Hauptsatz der Differential- und Integralrechnung: Unterschied zwischen den Versionen
Zeile 41: | Zeile 41: | ||
</head> | </head> | ||
<body> | <body> | ||
<div id="box2" style="width: | <div id="box2" style="width:25%; 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; | ||
Zeile 116: | Zeile 116: | ||
}); | }); | ||
// | // Integral-Label anpassen | ||
i1.label.setText(() => { | |||
const a = i1.baseLeft.X().toFixed(2); // Untere Grenze | const a = i1.baseLeft.X().toFixed(2); // Untere Grenze | ||
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 f(x)_{${a}}^{${b}} \\, dx = ${value}\\]`; | |||
}); | |||
} | |||
// Beschriftung der Funktion mit f | // Beschriftung der Funktion mit f |