Applets:Periodendauer periodischer Signale: Unterschied zwischen den Versionen
Aus LNTwww
Zeile 1: | Zeile 1: | ||
+ | |||
<p> | <p> | ||
{{BlaueBox|TEXT= | {{BlaueBox|TEXT= | ||
Zeile 9: | Zeile 10: | ||
<html> | <html> | ||
<head> | <head> | ||
− | |||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jsxgraph/0.99.6/jsxgraphcore.js"></script> | <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jsxgraph/0.99.6/jsxgraphcore.js"></script> | ||
− | <script type="text/javascript" src="https://cdn.rawgit.com/mathjax/MathJax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script | + | <script type="text/javascript" src="https://cdn.rawgit.com/mathjax/MathJax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<style> | <style> | ||
.button1{ | .button1{ | ||
Zeile 63: | Zeile 40: | ||
<form id="jxgForm"> | <form id="jxgForm"> | ||
+ | |||
<!-- Resetbutton, Checkbox und Formel --> | <!-- Resetbutton, Checkbox und Formel --> | ||
− | + | <p> | |
− | + | <input type="checkbox" id="gridbox" onclick="showgrid();" checked> <label for="gridbox">Gitterlinien zeigen</label> | |
− | + | <button class="button" onclick="rst()">Reset</button> | |
− | + | </p> | |
− | <div id=" | + | <div id="box1" class="jxgbox" style="width:600px; height:600px; border:1px solid black; margin:100px 20px 0px 0px;"></div> |
− | <div id=" | + | <div id="box2" class="jxgbox" style="width:600px; height:150px; border:1px solid white; margin:-760px 20px 0px 0px;"></div> |
− | <div id=" | + | <div id="box3" class="jxgbox" style="width:600px; height:100px; border:1px solid white; margin:625px 20px 0px 0px;"></div> |
− | |||
<script type="text/javascript"> | <script type="text/javascript"> | ||
Zeile 78: | Zeile 55: | ||
//Grundeinstellungen der beiden Applets | //Grundeinstellungen der beiden Applets | ||
JXG.Options.text.useMathJax = true; | JXG.Options.text.useMathJax = true; | ||
− | var brd1 = JXG.JSXGraph.initBoard(' | + | var brd1 = JXG.JSXGraph.initBoard('box1', {showCopyright:false, axis:false, zoom:{factorX:1.1, factorY:1.1, wheel:true, needshift:true, eps: 0.1}, grid:false, boundingbox: [-0.5, 2.2, 12.4, -2.2]}); |
− | var brd2 = JXG.JSXGraph.initBoard(' | + | var brd2 = JXG.JSXGraph.initBoard('box2', {showCopyright:false, showNavigation:false, axis:false, grid:false, zoom:{enabled:false}, pan:{enabled:false}, boundingbox: [-1, 2.2, 12.4, -2.2]}); |
− | var brd3 = JXG.JSXGraph.initBoard(' | + | var brd3 = JXG.JSXGraph.initBoard('box3', {showCopyright:false, showNavigation:false, axis:false, grid:false, zoom:{enabled:false}, pan:{enabled:false}, boundingbox: [-1, 2.2, 12.4, -2.2]}); |
brd2.addChild(brd1); | brd2.addChild(brd1); | ||
brd2.addChild(brd3); | brd2.addChild(brd3); | ||
//Einstellungen der Achsen | //Einstellungen der Achsen | ||
− | xaxis = brd1.create('axis', [[0, 0], [1,0]], {name:'\\[ | + | xaxis = brd1.create('axis', [[0, 0], [1,0]], {name:'\\[t/T\\]', withLabel:true, label:{position:'rt', offset:[-25, 15]}}); |
yaxis = brd1.create('axis', [[0, 0], [0, 1]], {name:'\\[x(t)\\]', withLabel:true, label:{position:'rt', offset:[10, -5]}}); | yaxis = brd1.create('axis', [[0, 0], [0, 1]], {name:'\\[x(t)\\]', withLabel:true, label:{position:'rt', offset:[10, -5]}}); | ||
Zeile 193: | Zeile 170: | ||
//Definition des Reset-Buttons | //Definition des Reset-Buttons | ||
function rst() { | function rst() { | ||
− | document.getElementById(" | + | document.getElementById("jxgForm").reset(); |
}; | }; | ||
</script> | </script> |
Version vom 13. September 2017, 17:54 Uhr
Funktion: $$x(t) = A_1\cdot cos\Big(2\pi f_1\cdot t- \frac{2\pi}{360}\cdot \phi_1\Big)+A_2\cdot cos\Big(2\pi f_2\cdot t- \frac{2\pi}{360}\cdot \phi_2\Big)$$