|
|
Line 9: |
Line 9: |
| <html> | | <html> |
| <head> | | <head> |
− | <meta charset="utf-8" />
| + | <meta charset="utf-8" /> |
− | <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://en.lntwww.de/MathJax/unpacked/MathJax.js?config=TeX-AMS-MML_HTMLorMML-full,local/mwMathJaxConfig"></script> --> |
− | <style>
| + | <!-- <script type="text/javascript" src="https://cdn.rawgit.com/mathjax/MathJax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML-full"></script> --> |
− | .button1{
| + | <style> |
− | background-color: black;
| + | .button { |
− | border: none;
| + | background-color: black; |
− | color: white;
| + | border: none; |
− | font-family: arial;
| + | color: white; |
− | padding: 8px 20px;
| + | font-family: arial; |
− | text-align: center;
| + | padding: 8px 20px; |
− | text-decoration: none;
| + | text-align: center; |
− | display: inline-block;
| + | text-decoration: none; |
− | font-size: 16px;
| + | display: inline-block; |
− | border-radius: 15px;
| + | font-size: 16px; |
− | position:relative;
| + | border-radius: 15px; |
− | top: 750px;
| + | } |
− | left: 830px;
| + | .button:active { |
− | }
| + | background-color: #939393; |
− | | + | } |
− | .button1:active {
| + | table { |
− | background-color: #939393;}
| + | border-collapse: separate; |
− | | + | border-spacing: 20px 0; |
− | </style>
| + | } |
| + | </style> |
| </head> | | </head> |
− | <body>
| |
| | | |
− | <p><B><span style="position:absolute; top:55px; left:80px; font-family:arial; font-size:0.750em; color:red;">Impuls 1
| |
− | <select class="dropdown1" id ="Impuls 1" onchange ="change1(this)">
| |
− | <option selected value='0'>Gauß</option>
| |
− | <option value='1'>Rechteck</option>
| |
− | <option value='2'>Dreieck</option>
| |
− | <option value='3'>Trapez</option>
| |
− | <option value='4'>Cos-Rolloff</option>
| |
− | <option value='5'>Inaktiv</option>
| |
− | </select>
| |
− | </span></B></p>
| |
| | | |
− | <p><B><span style="position:absolute; top:55px; left:900px; font-family:arial; font-size:0.750em; color:blue;">Impuls 2
| |
− | <select class="dropdown2" id ="Impuls 2" onchange ="change2(this)">
| |
− | <option value='0'>Gauß</option>
| |
− | <option value='1'>Rechteck</option>
| |
− | <option value='2'>Dreieck</option>
| |
− | <option selected value='3'>Trapez</option>
| |
− | <option value='4'>Cos-Rolloff</option>
| |
− | <option value='5'>Inaktiv</option>
| |
− | </select>
| |
− | </span></B></p>
| |
| | | |
− | <form id="myForm"> | + | <body onload="drawNow()"> |
− | <button class="button1" style="font-size:0.750em" onclick="zurueck()">Reset</button> | + | <!-- Resetbutton, Checkbox, Regler und Plots --> |
− | <p><span style="position:absolute; top:730px; left:840px; font-family:arial; font-size:0.750em;">mit Gitter<input name="gridbox" id="gridbox" type="checkbox" onclick="showgrid();" checked="checked"></span></p> | + | <p> |
| + | <input type="checkbox" id="gridbox" onclick="showgrid();" checked> <label for="gridbox">Gitterlinien Zeigen</label> |
| + | <button class="button" onclick="drawNow();">Reset</button> |
| + | </p> |
| + | <div id="cnfBoxHtml" class="jxgbox" style="width:600px; height:100px; float:top; margin:-10px 20px 100px 0px;"></div> |
| + | <div id="pltBoxHtml" class="jxgbox" style="width:600px; height:600px; border:1px solid black; margin:-10px 20px 100px 0px;"></div> |
| | | |
− | <div id="pltBox1" class="jxgbox" style="width:600px; height:300px; border:1px solid black; margin:50px 20px 100px 220px;"></div> | + | <!-- Ausgabefelder --> |
− | <div id="pltBox2" class="jxgbox" style="width:600px; height:300px; border:1px solid black; margin:50px 20px 100px 220px;"></div> | + | <table> |
− | <div id="cnfBox1" class="jxgbox" style="width:200px; height:600px; border:1px solid black; margin:-805px 10px 100px 10px;"></div> | + | <tr> |
− | <div id="cnfBox2" class="jxgbox" style="width:200px; height:600px; border:1px solid black; margin:-700px 800px 100px 830px;"></div> | + | <td>$x(t)$= <span id="x(t)"></span> </td> |
− | <div id="cnfBox3" class="jxgbox" style="width:600px; height:50px; border:1px solid black; margin:-380px 800px 100px 220px;"></div> | + | <td>$x(t+ T_0)$=<span id="x(t+T_0)"></span> </td> |
| + | <td>$x(t+2T_0)$=<span id="x(t+2T_0)"></span></td> |
| + | </tr> |
| + | <tr> |
| + | <td>$x_{\text{max}}$=<span id="x_max"></span></td> |
| + | <td>$T_0$= <span id="T_0"></span> </td> |
| + | </tr> |
| + | </table> |
| | | |
| | | |
| <script type="text/javascript"> | | <script type="text/javascript"> |
− | | + | function drawNow() { |
− | //Grundeinstellungen der beiden Applets | + | // Grundeinstellungen der beiden Applets |
− | JXG.Options.text.useMathJax = true; | + | JXG.Options.text.useMathJax = true; |
− | pltBox1 = JXG.JSXGraph.initBoard('pltBox1', {
| + | cnfBox = JXG.JSXGraph.initBoard('cnfBoxHtml', { |
− | showCopyright:false, axis:false,
| + | showCopyright: false, showNavigation: false, axis: false, |
− | zoom:{factorX:1.1, factorY:1.1, wheel:true, needshift:true, eps: 0.1},
| + | grid: false, zoom: { enabled: false }, pan: { enabled: false }, |
− | grid:false,
| + | boundingbox: [-1, 2.2, 12.4, -2.2] |
− | boundingbox: [-1.1, 1.1, 1.1, -0.3]
| + | }); |
− | }); | + | pltBox = JXG.JSXGraph.initBoard('pltBoxHtml', { |
− | pltBox2 = JXG.JSXGraph.initBoard('pltBox2', {
| + | showCopyright: false, axis: false, |
− | showCopyright:false, axis:false,
| + | zoom: { factorX: 1.1, factorY: 1.1, wheel: true, needshift: true, eps: 0.1 }, |
− | 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] |
− | grid:false,
| + | }); |
− | boundingbox: [-3.1, 1.1, 3.1, -0.3]
| + | cnfBox.addChild(pltBox); |
− | }); | + | // Einstellungen der Achsen |
− | cnfBox1 = JXG.JSXGraph.initBoard('cnfBox1', {
| + | xaxis = pltBox.create('axis', [[0, 0], [1, 0]], { |
− | showCopyright:false, axis:false, ShowNavigation:false,
| + | name: '$\\dfrac{t}{T}$', |
− | zoom:{enabled:false}, pan:{enabled:false}, grid:false,
| + | withLabel: true, label: { position: 'rt', offset: [-25, -10] } |
− | boundingbox: [-3.1, 1.1, 3.1, -0.3]
| + | }); |
− | }); | + | yaxis = pltBox.create('axis', [[0, 0], [0, 1]], { |
− | cnfBox2 = JXG.JSXGraph.initBoard('cnfBox2', {
| + | name: '$x(t)$', |
− | showCopyright:false, axis:false, ShowNavigation:false,
| + | withLabel: true, label: { position: 'rt', offset: [10, -5] } |
− | zoom:{enabled:false}, pan:{enabled:false}, grid:false,
| + | }); |
− | boundingbox: [-3.1, 1.1, 3.1, -0.3]
| + | // Erstellen der Schieberegler |
− | });
| + | a = cnfBox.create('slider', [ [-0.7, 1.5], [3, 1.5], [0, 0.5, 1] ], { |
− | cnfBox3 = JXG.JSXGraph.initBoard('cnfBox3', {
| + | suffixlabel: '$A_1=$', |
− | showCopyright:false, axis:false, ShowNavigation:false,
| + | unitLabel: 'V', snapWidth: 0.01 |
− | zoom:{enabled:false}, pan:{enabled:false}, grid:false,
| + | }), |
− | boundingbox: [-3.1, 1.1, 3.1, -0.3]
| + | b = cnfBox.create('slider', [ [-0.7, 0.5], [3, 0.5], [0, 1, 10] ], { |
− | }); | + | suffixlabel: '$f_1=$', |
− | | + | unitLabel: 'kHz', snapWidth: 0.1 |
− | cnfBox1.addChild(pltBox1);
| + | }), |
− | cnfBox2.addChild(pltBox1);
| + | c = cnfBox.create('slider', [ [-0.7, -0.5], [3, -0.5], [-180, 0, 180] ], { |
− | cnfBox1.addChild(pltBox2);
| + | suffixlabel: '$\\phi_1=$', |
− | cnfBox2.addChild(pltBox2);
| + | unitLabel: 'Grad', snapWidth: 5 |
− | cnfBox3.addChild(cnfBox1);
| + | }), |
− | cnfBox3.addChild(cnfBox2);
| + | d = cnfBox.create('slider', [ [6, 1.5], [9.7, 1.5], [0, 0.5, 1] ], { |
− | | + | suffixlabel: '$A_2=$', |
− | | + | unitLabel: 'V', snapWidth: 0.01 |
− | //Einstellungen der Achsen
| + | }), |
− | xaxis1 = pltBox1.create('axis', [[0, 0], [1,0]], {
| + | e = cnfBox.create('slider', [ [6, 0.5], [9.7, 0.5], [0, 2, 10] ], { |
− | name:'\\[t\\]',
| + | suffixlabel: '$f_2=$', |
− | withLabel:true, label:{position:'rt', offset:[-25, 15]}
| + | unitLabel: 'kHz', snapWidth: 0.1 |
− | }); | + | }), |
− | yaxis1 = pltBox1.create('axis', [[0, 0], [0, 1]], {
| + | g = cnfBox.create('slider', [ [6, -0.5], [9.7, -0.5], [-180, 90, 180] ], { |
− | name:'\\[x(t)\\]',
| + | suffixlabel: '$\\phi_2=$', |
− | withLabel:true, label:{position:'rt', offset:[10, -5]}
| + | unitLabel: 'Grad', snapWidth: 5 |
− | });
| + | }), |
− | xaxis2 = pltBox2.create('axis', [[0, 0], [1,0]], {
| + | t = cnfBox.create('slider', [ [-0.7, -1.5], [3, -1.5], [0, 0, 10] ], { |
− | name:'\\[f\\]',
| + | suffixlabel: '$t=$', |
− | withLabel:true, label:{position:'rt', offset:[-25, 15]}
| + | unitLabel: 's', snapWidth: 0.2 |
− | }); | + | }), |
− | yaxis2 = pltBox2.create('axis', [[0, 0], [0, 1]], {
| + | // Definition der Funktion |
− | name:'\\[X(f)\\]',
| + | signaldarstellung = pltBox.create('functiongraph', [function(x) { |
− | withLabel:true, label:{position:'rt', offset:[10, -5]}
| + | return (a.Value() * Math.cos(2 * Math.PI * b.Value() * x - 2 * Math.PI * c.Value() / 360) + d.Value() * Math.cos(2 * Math.PI * e.Value() * x - 2 * Math.PI * g.Value() / 360)) |
− | }); | + | }], { |
− | | + | strokeColor: "red" |
− | //Festlegen der Schieberegler
| + | }); |
− | sldA1 = cnfBox1.create('slider',[[-2.8,1],[0.8,1],[0,1,2]], {
| + | // Definition des Punktes p_T0, des Hilfspunktes p_T0h und der Geraden l_T0 für Periodendauer T_0 |
− | suffixlabel:' <I>A</I>_1=',
| + | p_T0 = pltBox.create('point', [ |
− | snapWidth:0.05
| + | function() { |
− | }), | + | return (Math.round(getT0() * 100) / 100); |
− | sldDT1 = cnfBox1.create('slider',[[-2.8,0.9],[0.8,0.9],[0,1,2]], {
| + | }, |
− | suffixlabel:' <I>Δt</I>_1=',
| + | function() { |
− | snapWidth:0.01
| + | return a.Value() * Math.cos(2 * Math.PI * b.Value() * (Math.round(getT0() * 100) / 100) - 2 * Math.PI * c.Value() / 360) + |
− | }),
| + | d.Value() * Math.cos(2 * Math.PI * e.Value() * (Math.round(getT0() * 100) / 100) - 2 * Math.PI * g.Value() / 360); |
− | sldR1 = cnfBox1.create('slider',[[-2.8,0.8],[0.8,0.8],[0,0.5,1]], {
| + | }], |
− | suffixlabel:' <I>r</I>_1=',
| + | { color: "blue", fixed: true, label: false, size: 1, name: '' } |
− | snapWidth:0.05
| + | ); |
− | }), | + | p_T0h = pltBox.create('point', |
− | sldA2 = cnfBox2.create('slider',[[-2.8,1],[0.8,1],[0,1,2]], {
| + | [function() { return (Math.round(getT0() * 100) / 100); }, 2], |
− | suffixlabel:' <I>A</I>_2=',
| + | { visible: false, color: "blue", fixed: true, label: false, size: 1, name: '' } |
− | snapWidth:0.05
| + | ); |
− | }),
| + | l_T0 = pltBox.create('line', [p_T0, p_T0h]) |
− | sldDT2 = cnfBox2.create('slider',[[-2.8,0.9],[0.8,0.9],[0,1,2]], {
| + | // Bestimmung des Wertes T_0 mit der Funktion von Siebenwirth |
− | suffixlabel:' <I>Δt</I>_2=',
| + | setInterval(function() { |
− | snapWidth:0.05
| + | document.getElementById("T_0").innerHTML = Math.round(getT0() * 100) / 100; |
− | }),
| + | }, 50); |
− | sldR2 = cnfBox2.create('slider',[[-2.8,0.8],[0.8,0.8],[0,0.5,1]], {
| + | function isInt(n) { |
− | suffixlabel:' <I>r</I>_2=',
| + | return n % 1 === 0; |
− | snapWidth:0.05
| + | } |
− | }),
| + | function getT0() { |
− | sldT = cnfBox3.create('slider',[[-2.8,0.4],[-1.6,0.4],[-1,0.5,1]], {
| + | var A, B, C, Q; |
− | suffixlabel:' <I>t</I>=',
| + | if (b.Value() < e.Value()) { |
− | snapWidth:0.05
| + | A = b.Value(); |
− | }),
| + | B = e.Value(); |
− | sldF = cnfBox3.create('slider',[[1,0.4],[2.2,0.4],[-3,0.5,3]], {
| + | } else { |
− | suffixlabel:' <I>f</I>=',
| + | B = b.Value(); |
− | snapWidth:0.05
| + | A = e.Value(); |
− | }), | + | } |
− | | + | // console.log('Berechne T0 mit A=' + A, 'B=' + B); |
− | //Substituierte Hilfswerte
| + | for (var x = 1; x <= 100; x++) { |
− | t1=sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2
| + | C = A / x; |
− | t2=(sldR1.Value()*sldDT1.Value())/2+sldDT1.Value()/2
| + | Q = B / C; |
− | | + | // console.log(x + '. Durchgang: C = ' + C, 'Q = ' + Q); |
− | //Definition der Texte für die Funktionswerte von Impuls 1 | + | if (isInt(Q)) { |
− | var txtG1=cnfBox1.create('text',[0,0.1, function()
| + | // console.log('Q ist eine Ganzzahl!!! T0 ist damit ', 1 / C); |
− | {return '\\[x(t)= '+ Math.round((sldA1.Value()*Math.exp(-1*Math.PI*(sldT.Value()/sldDT1.Value())*(sldT.Value()/sldDT1.Value())))*1000)/1000 +' \\]';}],
| + | return 1 / C; |
− | {fixed:true, strokeColor:'red', visible:true});
| + | } |
− | var txtR1=cnfBox1.create('text',[0,0.1, function(){
| + | if (x === 10) { |
− | if (Math.abs(sldT.Value())<sldDT1.Value()/2)
| + | return 10; |
− | {return '\\[x(t)= '+ Math.round((sldA1.Value())*1000)/1000 +' \\]';}
| + | } |
− | else if(Math.abs(sldT.Value())==sldDT1.Value()/2)
| + | if ((1 / C) > 10) |
− | {return '\\[x(t)= '+ Math.round((sldA1.Value()/2)*1000)/1000 +' \\]';}
| + | return 10 |
− | else
| + | } |
− | {return '\\[x(t)= '+ Math.round((0)*1000)/1000 +' \\]';}}],
| + | } |
− | {fixed:true, strokeColor:'red', visible:false});
| + | // Ausgabe des Wertes x(t) |
− | var txtD1=cnfBox1.create('text',[0,0.1, function(){
| + | setInterval(function() { |
− | if (Math.abs(sldT.Value())<sldDT1.Value()) | + | document.getElementById("x(t)").innerHTML = Math.round((a.Value() * Math.cos(2 * Math.PI * b.Value() * t.Value() - 2 * Math.PI * c.Value() / 360) + d.Value() * Math.cos(2 * Math.PI * e.Value() * t.Value() - 2 * Math.PI * g.Value() / |
− | {return '\\[x(t)= '+ Math.round((sldA1.Value()*(1-Math.abs(sldT.Value())/sldDT1.Value()))*1000)/1000 +' \\]';}
| + | 360)) * 1000) / 1000; |
− | else
| + | }, 50); |
− | {return '\\[x(t)= '+ Math.round((0)*1000)/1000 +' \\]';}}],
| + | // Ausgabe des Wertes x(t+T_0) |
− | {fixed:true, strokeColor:'red', visible:false});
| + | setInterval(function() { |
− | var txtT1=cnfBox1.create('text',[0,0.1, function(){
| + | document.getElementById("x(t+T_0)").innerHTML = Math.round((a.Value() * Math.cos(2 * Math.PI * b.Value() * (t.Value() + Math.round(getT0() * 1000) / 1000) - c.Value()) + d.Value() * Math.cos(2 * Math.PI * e.Value() * (t.Value() + |
− | if (Math.abs(sldT.Value())<=(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2))
| + | Math.round(getT0() * 1000) / 1000) - g.Value())) * 1000) / 1000; |
− | {return '\\[x(t)= '+ Math.round((sldA1.Value())*1000)/1000 +' \\]';}
| + | }, 50); |
− | else if (((sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2)<= Math.abs(sldT.Value())) && (Math.abs(sldT.Value())<=((sldR1.Value()*sldDT1.Value())/2+sldDT1.Value()/2)))
| + | // Ausgabe des Wertes x(t+2T_0) |
− | {return '\\[x(t)= '+ Math.round((sldA1.Value()*(((sldR1.Value()*sldDT1.Value())/2+sldDT1.Value()/2)-Math.abs(sldT.Value()))/(((sldR1.Value()*sldDT1.Value())/2+sldDT1.Value()/2)-(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2)))*1000)/1000 +' \\]'}
| + | setInterval(function() { |
− | else
| + | document.getElementById("x(t+2T_0)").innerHTML = Math.round((a.Value() * Math.cos(2 * Math.PI * b.Value() * (t.Value() + 2 * Math.round(getT0() * 1000) / 1000) - c.Value()) + d.Value() * Math.cos(2 * Math.PI * e.Value() * (t.Value() + |
− | {return '\\[x(t)= '+ Math.round((0)*1000)/1000 +' \\]'}}],
| + | 2 * Math.round(getT0() * 1000) / 1000) - g.Value())) * 1000) / 1000; |
− | {fixed:true, strokeColor:'red', visible:false});
| + | }, 50); |
− | var txtC1=cnfBox1.create('text',[0,0.1, function(){
| + | // Ausgabe des Wertes x_max |
− | if (Math.abs(sldT.Value())<=(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2))
| + | setInterval(function() { |
− | {return '\\[x(t)= '+ Math.round((sldA1.Value())*1000)/1000 +' \\]';}
| + | var x = new Array(50000); |
− | else if (((sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2)<=Math.abs(sldT.Value())) && (Math.abs(sldT.Value())<=((sldR1.Value()*sldDT1.Value())/2+sldDT1.Value()/2)))
| + | for (var i = 0; i < 50001; i++) { |
− | {return '\\[x(t)= '+ Math.round((sldA1.Value()*Math.cos((Math.abs(sldT.Value())-(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2))/(((sldR1.Value()*sldDT1.Value())/2+sldDT1.Value()/2)-(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2))*(Math.PI/2))*Math.cos((Math.abs(sldT.Value())-(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2))/(((sldR1.Value()*sldDT1.Value())/2+sldDT1.Value()/2)-(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2))*(Math.PI/2)))*1000)/1000 +' \\]';}
| + | x[i] = Math.round((a.Value() * Math.cos(2 * Math.PI * b.Value() * (i / 1000) - 2 * Math.PI * c.Value() / 360) + d.Value() * Math.cos(2 * Math.PI * e.Value() * (i / 1000) - 2 * Math.PI * g.Value() / 360)) * 1000) / 1000; |
− | else
| + | } |
− | {return '\\[x(t)= '+ Math.round((0)*1000)/1000 +' \\]'}}],
| + | document.getElementById("x_max").innerHTML = Math.max.apply(Math, x); |
− | {fixed:true, strokeColor:'red', visible:false});
| + | }, 50); |
− | | + | }; |
− | var txtGS1=cnfBox1.create('text',[0,0, function()
| + | // Definition der Funktion zum An- und Ausschalten des Koordinatengitters |
− | {return '\\[X(f)= '+ Math.round((sldA1.Value()*sldDT1.Value()*Math.exp(-1*Math.PI*(sldF.Value()*sldDT1.Value())*(sldF.Value()*sldDT1.Value())))*1000)/1000 +' \\]' ;}],
| + | function showgrid() { |
− | {fixed:true, strokeColor:'red', visible:true});
| + | if (gridbox.checked) { |
− | var txtRS1=cnfBox1.create('text',[0,0, function()
| + | xaxis = pltBox.create('axis', [ [0, 0], [1, 0] ], {}); |
− | {return '\\[X(f)= '+ Math.round((sldA1.Value()*sldDT1.Value()*Math.sin(Math.PI*sldDT1.Value()*sldF.Value())/(Math.PI*sldDT1.Value()*sldF.Value()))*1000)/1000 +' \\]' ;}],
| + | yaxis = pltBox.create('axis', [ [0, 0], [0, 1] ], {}); |
− | {fixed:true, strokeColor:'red', visible:false});
| + | } else { |
− | var txtDS1=cnfBox1.create('text',[0,0, function()
| + | xaxis.removeTicks(xaxis.defaultTicks); |
− | {return '\\[X(f)= '+ Math.round((sldA1.Value()*sldDT1.Value()*Math.pow(Math.sin(Math.PI*sldDT1.Value()*sldF.Value())/(Math.PI*sldDT1.Value()*sldF.Value()),2))*1000)/1000 +' \\]' ;}],
| + | yaxis.removeTicks(yaxis.defaultTicks); |
− | {fixed:true, strokeColor:'red', visible:false});
| + | } |
− | var txtTS1=cnfBox1.create('text',[0,0, function()
| + | pltBox.fullUpdate(); |
− | {return '\\[X(f)= '+ Math.round((sldA1.Value()*sldDT1.Value()*(Math.sin(Math.PI*sldDT1.Value()*sldF.Value())/(Math.PI*sldDT1.Value()*sldF.Value()))*(Math.sin(Math.PI*sldR1.Value()*sldDT1.Value()*sldF.Value())/(Math.PI*sldR1.Value()*sldDT1.Value()*sldF.Value())))*1000)/1000 +' \\]' ;}],
| + | }; |
− | {fixed:true, strokeColor:'red', visible:false});
| |
− | var txtCS1=cnfBox1.create('text',[0,0, function()
| |
− | {return '\\[X(f)= '+ Math.round((sldA1.Value()*sldDT1.Value()*(Math.cos(Math.PI*sldR1.Value()*sldDT1.Value()*sldF.Value()))/(1-Math.pow((2*sldR1.Value()*sldDT1.Value()*sldF.Value()),2))*(Math.sin(Math.PI*sldDT1.Value()*sldF.Value())/(Math.PI*sldDT1.Value()*sldF.Value())))*1000)/1000 +' \\]' ;}],
| |
− | {fixed:true, strokeColor:'red', visible:false});
| |
− | | |
− | //Definition der Texte für die Funktionswerte von Impuls 2
| |
− | | |
− | var txtG2=cnfBox2.create('text',[-2,0.1, function()
| |
− | {return '\\[x(t)= '+ Math.round((sldA2.Value()*Math.exp(-1*Math.PI*(sldT.Value()/sldDT2.Value())*(sldT.Value()/sldDT2.Value())))*1000)/1000 +' \\]' ;}],
| |
− | {fixed:true, strokeColor:'blue', visible:false});
| |
− | var txtR2=cnfBox2.create('text',[-2,0.1, function(){
| |
− | if (Math.abs(sldT.Value())<sldDT2.Value()/2)
| |
− | {return '\\[x(t)= '+ Math.round((sldA2.Value())*1000)/1000 +' \\]';}
| |
− | else if(Math.abs(sldT.Value())==sldDT2.Value()/2)
| |
− | {return '\\[x(t)= '+ Math.round((sldA2.Value()/2)*1000)/1000 +' \\]';}
| |
− | else
| |
− | {return '\\[x(t)= '+ Math.round((0)*1000)/1000 +' \\]';}}],
| |
− | {fixed:true, strokeColor:'blue', visible:false});
| |
− | var txtD2=cnfBox2.create('text',[-2,0.1, function(){
| |
− | if (Math.abs(sldT.Value())<sldDT2.Value())
| |
− | {return '\\[x(t)= '+ Math.round((sldA2.Value()*(1-Math.abs(sldT.Value())/sldDT2.Value()))*1000)/1000 +' \\]';}
| |
− | else
| |
− | {return '\\[x(t)= '+ Math.round((0)*1000)/1000 +' \\]';}}],
| |
− | {fixed:true, strokeColor:'blue', visible:false});
| |
− | var txtT2=cnfBox2.create('text',[-2,0.1, function(){
| |
− | if (Math.abs(sldT.Value())<=(sldDT2.Value()/2-(sldR2.Value()*sldDT2.Value())/2))
| |
− | {return '\\[x(t)= '+ Math.round((sldA2.Value())*1000)/1000 +' \\]';}
| |
− | else if (((sldDT2.Value()/2-(sldR2.Value()*sldDT2.Value())/2)<= Math.abs(sldT.Value())) && (Math.abs(sldT.Value())<=((sldR2.Value()*sldDT2.Value())/2+sldDT2.Value()/2)))
| |
− | {return '\\[x(t)= '+ Math.round((sldA2.Value()*(((sldR2.Value()*sldDT2.Value())/2+sldDT2.Value()/2)-Math.abs(sldT.Value()))/(((sldR2.Value()*sldDT2.Value())/2+sldDT2.Value()/2)-(sldDT2.Value()/2-(sldR2.Value()*sldDT2.Value())/2)))*1000)/1000 +' \\]'}
| |
− | else
| |
− | {return '\\[x(t)= '+ Math.round((0)*1000)/1000 +' \\]'}}],
| |
− | {fixed:true, strokeColor:'blue', visible:true});
| |
− | var txtC2=cnfBox2.create('text',[-2,0.1, function(){
| |
− | if (Math.abs(sldT.Value())<=(sldDT2.Value()/2-(sldR2.Value()*sldDT2.Value())/2))
| |
− | {return '\\[x(t)= '+ Math.round((sldA2.Value())*1000)/1000 +' \\]';}
| |
− | else if (((sldDT2.Value()/2-(sldR2.Value()*sldDT2.Value())/2)<=Math.abs(sldT.Value())) && (Math.abs(sldT.Value())<=((sldR2.Value()*sldDT2.Value())/2+sldDT2.Value()/2)))
| |
− | {return '\\[x(t)= '+ Math.round((sldA2.Value()*Math.cos((Math.abs(sldT.Value())-(sldDT2.Value()/2-(sldR2.Value()*sldDT2.Value())/2))/(((sldR2.Value()*sldDT2.Value())/2+sldDT2.Value()/2)-(sldDT2.Value()/2-(sldR2.Value()*sldDT2.Value())/2))*(Math.PI/2))*Math.cos((Math.abs(sldT.Value())-(sldDT2.Value()/2-(sldR2.Value()*sldDT2.Value())/2))/(((sldR2.Value()*sldDT2.Value())/2+sldDT2.Value()/2)-(sldDT2.Value()/2-(sldR2.Value()*sldDT2.Value())/2))*(Math.PI/2)))*1000)/1000 +' \\]';}
| |
− | else
| |
− | {return '\\[x(t)= '+ Math.round((0)*1000)/1000 +' \\]'}}],
| |
− | {fixed:true, strokeColor:'blue', visible:false});
| |
− | | |
− | var txtGS2=cnfBox2.create('text',[-2,0, function()
| |
− | {return '\\[X(f)= '+ Math.round((sldA2.Value()*sldDT2.Value()*Math.exp(-1*Math.PI*(sldF.Value()*sldDT2.Value())*(sldF.Value()*sldDT2.Value())))*1000)/1000 +' \\]' ;}],
| |
− | {fixed:true, strokeColor:'blue', visible:false});
| |
− | var txtRS2=cnfBox2.create('text',[-2,0, function()
| |
− | {return '\\[X(f)= '+ Math.round((sldA2.Value()*sldDT2.Value()*Math.sin(Math.PI*sldDT2.Value()*sldF.Value())/(Math.PI*sldDT2.Value()*sldF.Value()))*1000)/1000 +' \\]' ;}],
| |
− | {fixed:true, strokeColor:'blue', visible:false});
| |
− | var txtDS2=cnfBox2.create('text',[-2,0, function()
| |
− | {return '\\[X(f)= '+ Math.round((sldA2.Value()*sldDT2.Value()*Math.pow(Math.sin(Math.PI*sldDT2.Value()*sldF.Value())/(Math.PI*sldDT2.Value()*sldF.Value()),2))*1000)/1000 +' \\]' ;}],
| |
− | {fixed:true, strokeColor:'blue', visible:false});
| |
− | var txtTS2=cnfBox2.create('text',[-2,0, function()
| |
− | {return '\\[X(f)= '+ Math.round((sldA2.Value()*sldDT2.Value()*(Math.sin(Math.PI*sldDT2.Value()*sldF.Value())/(Math.PI*sldDT2.Value()*sldF.Value()))*(Math.sin(Math.PI*sldR2.Value()*sldDT2.Value()*sldF.Value())/(Math.PI*sldR2.Value()*sldDT2.Value()*sldF.Value())))*1000)/1000 +' \\]' ;}],
| |
− | {fixed:true, strokeColor:'blue', visible:true});
| |
− | var txtCS2=cnfBox2.create('text',[-2,0, function()
| |
− | {return '\\[X(f)= '+ Math.round((sldA2.Value()*sldDT2.Value()*(Math.cos(Math.PI*sldR2.Value()*sldDT2.Value()*sldF.Value()))/(1-Math.pow((2*sldR2.Value()*sldDT2.Value()*sldF.Value()),2))*(Math.sin(Math.PI*sldDT2.Value()*sldF.Value())/(Math.PI*sldDT2.Value()*sldF.Value())))*1000)/1000 +' \\]' ;}],
| |
− | {fixed:true, strokeColor:'blue', visible:false});
| |
− | | |
− | | |
− | //Definition der Zeitfunktionen von Impuls 1
| |
− | var funcG1 = pltBox1.create('functiongraph',[function(x)
| |
− | {return (sldA1.Value()*Math.exp(-1*Math.PI*(x/sldDT1.Value())*(x/sldDT1.Value())))}],
| |
− | {strokeColor: "red", visible: true});
| |
− | var funcR1 = pltBox1.create('functiongraph',[function(x){
| |
− | if (Math.abs(x)<sldDT1.Value()/2)
| |
− | {return sldA1.Value();}
| |
− | else if(Math.abs(x)==sldDT1.Value()/2)
| |
− | {return sldA1.Value()/2;}
| |
− | else
| |
− | {return 0;}}],
| |
− | {strokeColor: "red", visible: false});
| |
− | var funcD1 = pltBox1.create('functiongraph',[function(x){
| |
− | if (Math.abs(x)<sldDT1.Value())
| |
− | {return sldA1.Value()*(1-Math.abs(x)/sldDT1.Value());}
| |
− | else
| |
− | {return 0;}}],
| |
− | {strokeColor: "red", visible: false});
| |
− | var funcT1 = pltBox1.create('functiongraph',[function(x){
| |
− | if (Math.abs(x)<=(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2))
| |
− | {return sldA1.Value();}
| |
− | else if (((sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2)<= Math.abs(x)) && (Math.abs(x)<=((sldR1.Value()*sldDT1.Value())/2+sldDT1.Value()/2)))
| |
− | {return sldA1.Value()*(((sldR1.Value()*sldDT1.Value())/2+sldDT1.Value()/2)-Math.abs(x))/(((sldR1.Value()*sldDT1.Value())/2+sldDT1.Value()/2)-(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2))}
| |
− | else
| |
− | {return 0}}],
| |
− | {strokeColor: "red", visible: false});
| |
− | var funcC1 = pltBox1.create('functiongraph',[function(x){
| |
− | if (Math.abs(x)<=(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2))
| |
− | {return sldA1.Value();}
| |
− | else if (((sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2)<=Math.abs(x)) && (Math.abs(x)<=((sldR1.Value()*sldDT1.Value())/2+sldDT1.Value()/2)))
| |
− | {return sldA1.Value()*Math.cos((Math.abs(x)-(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2))/(((sldR1.Value()*sldDT1.Value())/2+sldDT1.Value()/2)-(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2))*(Math.PI/2))*Math.cos((Math.abs(x)-(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2))/(((sldR1.Value()*sldDT1.Value())/2+sldDT1.Value()/2)-(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2))*(Math.PI/2));}
| |
− | else
| |
− | {return 0}}],
| |
− | {strokeColor: "red", visible: false});
| |
− | | |
− | //Definition der Spektralfunktionen von Impuls 1
| |
− | var funcGS1 = pltBox2.create('functiongraph',[function(x){
| |
− | return (sldA1.Value()*sldDT1.Value()*Math.exp(-1*Math.PI*(x*sldDT1.Value())*(x*sldDT1.Value())))}],
| |
− | {strokeColor: "red", visible: true});
| |
− | var funcRS1 = pltBox2.create('functiongraph',[function(x){
| |
− | return (sldA1.Value()*sldDT1.Value()*Math.sin(Math.PI*sldDT1.Value()*x)/(Math.PI*sldDT1.Value()*x))}],
| |
− | {strokeColor: "red", visible: false});
| |
− | var funcDS1 = pltBox2.create('functiongraph',[function(x){
| |
− | return (sldA1.Value()*sldDT1.Value()*Math.pow(Math.sin(Math.PI*sldDT1.Value()*x)/(Math.PI*sldDT1.Value()*x),2))}],
| |
− | {strokeColor: "red", visible: false});
| |
− | var funcTS1 = pltBox2.create('functiongraph',[function(x){
| |
− | return (sldA1.Value()*sldDT1.Value()*(Math.sin(Math.PI*sldDT1.Value()*x)/(Math.PI*sldDT1.Value()*x))*(Math.sin(Math.PI*sldR1.Value()*sldDT1.Value()*x)/(Math.PI*sldR1.Value()*sldDT1.Value()*x)))}],
| |
− | {strokeColor: "red", visible: false});
| |
− | var funcCS1 = pltBox2.create('functiongraph',[function(x){
| |
− | return (sldA1.Value()*sldDT1.Value()*(Math.cos(Math.PI*sldR1.Value()*sldDT1.Value()*x))/(1-Math.pow((2*sldR1.Value()*sldDT1.Value()*x),2))*(Math.sin(Math.PI*sldDT1.Value()*x)/(Math.PI*sldDT1.Value()*x)))}],
| |
− | {strokeColor: "red", visible: false});
| |
− | | |
− | //Definition der Zeitfunktionen von Impuls 2
| |
− | var funcG2 = pltBox1.create('functiongraph',[function(x){
| |
− | return (sldA2.Value()*Math.exp(-1*Math.PI*(x/sldDT2.Value())*(x/sldDT2.Value())))}],
| |
− | {strokeColor: "blue", visible: false});
| |
− | var funcR2 = pltBox1.create('functiongraph',[function(x){
| |
− | if (Math.abs(x)<sldDT2.Value()/2)
| |
− | {return sldA2.Value();}
| |
− | else if(Math.abs(x)==sldDT2.Value()/2)
| |
− | {return sldA2.Value()/2;}
| |
− | else
| |
− | {return 0;}}],
| |
− | {strokeColor: "blue", visible: false});
| |
− | var funcD2 = pltBox1.create('functiongraph',[function(x){
| |
− | if (Math.abs(x)<sldDT2.Value())
| |
− | {return sldA2.Value()*(1-Math.abs(x)/sldDT2.Value());}
| |
− | else
| |
− | {return 0;}}],
| |
− | {strokeColor: "blue", visible: false});
| |
− | var funcT2 = pltBox1.create('functiongraph',[function(x){
| |
− | if (Math.abs(x)<=(sldDT2.Value()/2-(sldR2.Value()*sldDT2.Value())/2))
| |
− | {return sldA2.Value();}
| |
− | else if (((sldDT2.Value()/2-(sldR2.Value()*sldDT2.Value())/2)<= Math.abs(x)) && (Math.abs(x)<=((sldR2.Value()*sldDT2.Value())/2+sldDT2.Value()/2)))
| |
− | {return sldA2.Value()*(((sldR2.Value()*sldDT2.Value())/2+sldDT2.Value()/2)-Math.abs(x))/(((sldR2.Value()*sldDT2.Value())/2+sldDT2.Value()/2)-(sldDT2.Value()/2-(sldR2.Value()*sldDT2.Value())/2))}
| |
− | else
| |
− | {return 0}}],
| |
− | {strokeColor: "blue", visible: true});
| |
− | var funcC2 = pltBox1.create('functiongraph',[function(x){
| |
− | if (Math.abs(x)<=(sldDT2.Value()/2-(sldR2.Value()*sldDT2.Value())/2))
| |
− | {return sldA2.Value();}
| |
− | else if (((sldDT2.Value()/2-(sldR2.Value()*sldDT2.Value())/2)<=Math.abs(x)) && (Math.abs(x)<=((sldR2.Value()*sldDT2.Value())/2+sldDT2.Value()/2)))
| |
− | {return sldA2.Value()*Math.cos((Math.abs(x)-(sldDT2.Value()/2-(sldR2.Value()*sldDT2.Value())/2))/(((sldR2.Value()*sldDT2.Value())/2+sldDT2.Value()/2)-(sldDT2.Value()/2-(sldR2.Value()*sldDT2.Value())/2))*(Math.PI/2))*Math.cos((Math.abs(x)-(sldDT2.Value()/2-(sldR2.Value()*sldDT2.Value())/2))/(((sldR2.Value()*sldDT2.Value())/2+sldDT2.Value()/2)-(sldDT2.Value()/2-(sldR2.Value()*sldDT2.Value())/2))*(Math.PI/2));}
| |
− | else
| |
− | {return 0}}],
| |
− | {strokeColor: "blue", visible: false});
| |
− | | |
− | //Definition der Spektralfunktionen von Impuls 2
| |
− | var funcGS2 = pltBox2.create('functiongraph',[function(x){
| |
− | return (sldA2.Value()*sldDT2.Value()*Math.exp(-1*Math.PI*(x*sldDT2.Value())*(x*sldDT2.Value())))}],
| |
− | {strokeColor: "blue", visible: false});
| |
− | var funcRS2 = pltBox2.create('functiongraph',[function(x){
| |
− | return (sldA2.Value()*sldDT2.Value()*Math.sin(Math.PI*sldDT2.Value()*x)/(Math.PI*sldDT2.Value()*x))}],
| |
− | {strokeColor: "blue", visible: false});
| |
− | var funcDS2 = pltBox2.create('functiongraph',[function(x){
| |
− | return (sldA2.Value()*sldDT2.Value()*Math.pow(Math.sin(Math.PI*sldDT2.Value()*x)/(Math.PI*sldDT2.Value()*x),2))}],
| |
− | {strokeColor: "blue", visible: false});
| |
− | var funcTS2 = pltBox2.create('functiongraph',[function(x){
| |
− | return (sldA2.Value()*sldDT2.Value()*(Math.sin(Math.PI*sldDT2.Value()*x)/(Math.PI*sldDT2.Value()*x))*(Math.sin(Math.PI*sldR2.Value()*sldDT2.Value()*x)/(Math.PI*sldR2.Value()*sldDT2.Value()*x)))}],
| |
− | {strokeColor: "blue", visible: true});
| |
− | var funcCS2 = pltBox2.create('functiongraph',[function(x){
| |
− | return (sldA2.Value()*sldDT2.Value()*(Math.cos(Math.PI*sldR2.Value()*sldDT2.Value()*x))/(1-Math.pow((2*sldR2.Value()*sldDT2.Value()*x),2))*(Math.sin(Math.PI*sldDT2.Value()*x)/(Math.PI*sldDT2.Value()*x)))}],
| |
− | {strokeColor: "blue", visible: false});
| |
− | | |
− | | |
− | //Definition der Dropdownlisten dropdown1 und dropdown2
| |
− | var change1 = function(obj) {
| |
− | var v = obj.value;
| |
− | if (v=='0') { impuls1G();}
| |
− | else if (v=='1') { impuls1R();}
| |
− | else if (v=='2') { impuls1D();}
| |
− | else if (v=='3') { impuls1T();}
| |
− | else if (v=='4') { impuls1C();}
| |
− | else if (v=='5') { impuls1I();}
| |
− | };
| |
− | | |
− | var change2 = function(obj) {
| |
− | var v = obj.value;
| |
− | if (v=='0') { impuls2G();}
| |
− | else if (v=='1') { impuls2R();}
| |
− | else if (v=='2') { impuls2D();}
| |
− | else if (v=='3') { impuls2T();}
| |
− | else if (v=='4') { impuls2C();}
| |
− | else if (v=='5') { impuls2I();}
| |
− | };
| |
− | | |
− | | |
− | //Definition der Funktionen für dropdown1
| |
− | function impuls1G() {
| |
− | funcG1.setProperty({visible:true});
| |
− | funcR1.setProperty({visible:false});
| |
− | funcD1.setProperty({visible:false});
| |
− | funcT1.setProperty({visible:false});
| |
− | funcC1.setProperty({visible:false});
| |
− | funcGS1.setProperty({visible:true});
| |
− | funcRS1.setProperty({visible:false});
| |
− | funcDS1.setProperty({visible:false});
| |
− | funcTS1.setProperty({visible:false});
| |
− | funcCS1.setProperty({visible:false});
| |
− | txtG1.setProperty({visible:true});
| |
− | txtR1.setProperty({visible:false});
| |
− | txtD1.setProperty({visible:false});
| |
− | txtT1.setProperty({visible:false});
| |
− | txtC1.setProperty({visible:false});
| |
− | txtGS1.setProperty({visible:true});
| |
− | txtRS1.setProperty({visible:false});
| |
− | txtDS1.setProperty({visible:false});
| |
− | txtTS1.setProperty({visible:false});
| |
− | txtCS1.setProperty({visible:false});
| |
− | };
| |
− | | |
− | function impuls1R() {
| |
− | funcG1.setProperty({visible:false});
| |
− | funcR1.setProperty({visible:true});
| |
− | funcD1.setProperty({visible:false});
| |
− | funcT1.setProperty({visible:false});
| |
− | funcC1.setProperty({visible:false});
| |
− | funcGS1.setProperty({visible:false});
| |
− | funcRS1.setProperty({visible:true});
| |
− | funcDS1.setProperty({visible:false});
| |
− | funcTS1.setProperty({visible:false});
| |
− | funcCS1.setProperty({visible:false});
| |
− | txtG1.setProperty({visible:false});
| |
− | txtR1.setProperty({visible:true});
| |
− | txtD1.setProperty({visible:false});
| |
− | txtT1.setProperty({visible:false});
| |
− | txtC1.setProperty({visible:false});
| |
− | txtGS1.setProperty({visible:false});
| |
− | txtRS1.setProperty({visible:true});
| |
− | txtDS1.setProperty({visible:false});
| |
− | txtTS1.setProperty({visible:false});
| |
− | txtCS1.setProperty({visible:false});
| |
− | };
| |
− | | |
− | function impuls1D() {
| |
− | funcG1.setProperty({visible:false});
| |
− | funcR1.setProperty({visible:false});
| |
− | funcD1.setProperty({visible:true});
| |
− | funcT1.setProperty({visible:false});
| |
− | funcC1.setProperty({visible:false});
| |
− | funcGS1.setProperty({visible:false});
| |
− | funcRS1.setProperty({visible:true});
| |
− | funcDS1.setProperty({visible:false});
| |
− | funcTS1.setProperty({visible:false});
| |
− | funcCS1.setProperty({visible:false});
| |
− | txtG1.setProperty({visible:false});
| |
− | txtR1.setProperty({visible:false});
| |
− | txtD1.setProperty({visible:true});
| |
− | txtT1.setProperty({visible:false});
| |
− | txtC1.setProperty({visible:false});
| |
− | txtGS1.setProperty({visible:false});
| |
− | txtRS1.setProperty({visible:false});
| |
− | txtDS1.setProperty({visible:true});
| |
− | txtTS1.setProperty({visible:false});
| |
− | txtCS1.setProperty({visible:false});
| |
− | };
| |
− | | |
− | function impuls1T() {
| |
− | funcG1.setProperty({visible:false});
| |
− | funcR1.setProperty({visible:false});
| |
− | funcD1.setProperty({visible:false});
| |
− | funcT1.setProperty({visible:true});
| |
− | funcC1.setProperty({visible:false});
| |
− | funcGS1.setProperty({visible:false});
| |
− | funcRS1.setProperty({visible:false});
| |
− | funcDS1.setProperty({visible:false});
| |
− | funcTS1.setProperty({visible:true});
| |
− | funcCS1.setProperty({visible:false});
| |
− | txtG1.setProperty({visible:false});
| |
− | txtR1.setProperty({visible:false});
| |
− | txtD1.setProperty({visible:false});
| |
− | txtT1.setProperty({visible:true});
| |
− | txtC1.setProperty({visible:false});
| |
− | txtGS1.setProperty({visible:false});
| |
− | txtRS1.setProperty({visible:false});
| |
− | txtDS1.setProperty({visible:false});
| |
− | txtTS1.setProperty({visible:true});
| |
− | txtCS1.setProperty({visible:false});
| |
− | };
| |
− | | |
− | function impuls1C() {
| |
− | funcG1.setProperty({visible:false});
| |
− | funcR1.setProperty({visible:false});
| |
− | funcD1.setProperty({visible:false});
| |
− | funcT1.setProperty({visible:false});
| |
− | funcC1.setProperty({visible:true});
| |
− | funcGS1.setProperty({visible:false});
| |
− | funcRS1.setProperty({visible:false});
| |
− | funcDS1.setProperty({visible:false});
| |
− | funcTS1.setProperty({visible:false});
| |
− | funcCS1.setProperty({visible:true});
| |
− | txtG1.setProperty({visible:false});
| |
− | txtR1.setProperty({visible:false});
| |
− | txtD1.setProperty({visible:false});
| |
− | txtT1.setProperty({visible:false});
| |
− | txtC1.setProperty({visible:true});
| |
− | txtGS1.setProperty({visible:false});
| |
− | txtRS1.setProperty({visible:false});
| |
− | txtDS1.setProperty({visible:false});
| |
− | txtTS1.setProperty({visible:false});
| |
− | txtCS1.setProperty({visible:true});
| |
− | };
| |
− | | |
− | function impuls1I() {
| |
− | funcG1.setProperty({visible:false});
| |
− | funcR1.setProperty({visible:false});
| |
− | funcD1.setProperty({visible:false});
| |
− | funcT1.setProperty({visible:false});
| |
− | funcC1.setProperty({visible:false});
| |
− | funcGS1.setProperty({visible:false});
| |
− | funcRS1.setProperty({visible:false});
| |
− | funcDS1.setProperty({visible:false});
| |
− | funcTS1.setProperty({visible:false});
| |
− | funcCS1.setProperty({visible:false});
| |
− | txtG1.setProperty({visible:false});
| |
− | txtR1.setProperty({visible:false});
| |
− | txtD1.setProperty({visible:false});
| |
− | txtT1.setProperty({visible:false});
| |
− | txtC1.setProperty({visible:false});
| |
− | txtGS1.setProperty({visible:false});
| |
− | txtRS1.setProperty({visible:false});
| |
− | txtDS1.setProperty({visible:false});
| |
− | txtTS1.setProperty({visible:false});
| |
− | txtCS1.setProperty({visible:false});
| |
− | };
| |
− | | |
− | //Definition der Funktionen für dropdown1
| |
− | | |
− | function impuls2G() {
| |
− | funcG2.setProperty({visible:true});
| |
− | funcR2.setProperty({visible:false});
| |
− | funcD2.setProperty({visible:false});
| |
− | funcT2.setProperty({visible:false});
| |
− | funcC2.setProperty({visible:false});
| |
− | funcGS2.setProperty({visible:true});
| |
− | funcRS2.setProperty({visible:false});
| |
− | funcDS2.setProperty({visible:false});
| |
− | funcTS2.setProperty({visible:false});
| |
− | funcCS2.setProperty({visible:false});
| |
− | txtG2.setProperty({visible:true});
| |
− | txtR2.setProperty({visible:false});
| |
− | txtD2.setProperty({visible:false});
| |
− | txtT2.setProperty({visible:false});
| |
− | txtC2.setProperty({visible:false});
| |
− | txtGS2.setProperty({visible:true});
| |
− | txtRS2.setProperty({visible:false});
| |
− | txtDS2.setProperty({visible:false});
| |
− | txtTS2.setProperty({visible:false});
| |
− | txtCS2.setProperty({visible:false});
| |
− | };
| |
− | | |
− | function impuls2R() {
| |
− | funcG2.setProperty({visible:false});
| |
− | funcR2.setProperty({visible:true});
| |
− | funcD2.setProperty({visible:false});
| |
− | funcT2.setProperty({visible:false});
| |
− | funcC2.setProperty({visible:false});
| |
− | funcGS2.setProperty({visible:false});
| |
− | funcRS2.setProperty({visible:true});
| |
− | funcDS2.setProperty({visible:false});
| |
− | funcTS2.setProperty({visible:false});
| |
− | funcCS2.setProperty({visible:false});
| |
− | txtG2.setProperty({visible:false});
| |
− | txtR2.setProperty({visible:true});
| |
− | txtD2.setProperty({visible:false});
| |
− | txtT2.setProperty({visible:false});
| |
− | txtC2.setProperty({visible:false});
| |
− | txtGS2.setProperty({visible:false});
| |
− | txtRS2.setProperty({visible:true});
| |
− | txtDS2.setProperty({visible:false});
| |
− | txtTS2.setProperty({visible:false});
| |
− | txtCS2.setProperty({visible:false});
| |
− | };
| |
− | | |
− | function impuls2D() {
| |
− | funcG2.setProperty({visible:false});
| |
− | funcR2.setProperty({visible:false});
| |
− | funcD2.setProperty({visible:true});
| |
− | funcT2.setProperty({visible:false});
| |
− | funcC2.setProperty({visible:false});
| |
− | funcGS2.setProperty({visible:false});
| |
− | funcRS2.setProperty({visible:true});
| |
− | funcDS2.setProperty({visible:false});
| |
− | funcTS2.setProperty({visible:false});
| |
− | funcCS2.setProperty({visible:false});
| |
− | txtG2.setProperty({visible:false});
| |
− | txtR2.setProperty({visible:false});
| |
− | txtD2.setProperty({visible:true});
| |
− | txtT2.setProperty({visible:false});
| |
− | txtC2.setProperty({visible:false});
| |
− | txtGS2.setProperty({visible:false});
| |
− | txtRS2.setProperty({visible:false});
| |
− | txtDS2.setProperty({visible:true});
| |
− | txtTS2.setProperty({visible:false});
| |
− | txtCS2.setProperty({visible:false});
| |
− | };
| |
− | | |
− | function impuls2T() {
| |
− | funcG2.setProperty({visible:false});
| |
− | funcR2.setProperty({visible:false});
| |
− | funcD2.setProperty({visible:false});
| |
− | funcT2.setProperty({visible:true});
| |
− | funcC2.setProperty({visible:false});
| |
− | funcGS2.setProperty({visible:false});
| |
− | funcRS2.setProperty({visible:false});
| |
− | funcDS2.setProperty({visible:false});
| |
− | funcTS2.setProperty({visible:true});
| |
− | funcCS2.setProperty({visible:false});
| |
− | txtG2.setProperty({visible:false});
| |
− | txtR2.setProperty({visible:false});
| |
− | txtD2.setProperty({visible:false});
| |
− | txtT2.setProperty({visible:true});
| |
− | txtC2.setProperty({visible:false});
| |
− | txtGS2.setProperty({visible:false});
| |
− | txtRS2.setProperty({visible:false});
| |
− | txtDS2.setProperty({visible:false});
| |
− | txtTS2.setProperty({visible:true});
| |
− | txtCS2.setProperty({visible:false});
| |
− | };
| |
− | | |
− | function impuls2C() {
| |
− | funcG2.setProperty({visible:false});
| |
− | funcR2.setProperty({visible:false});
| |
− | funcD2.setProperty({visible:false});
| |
− | funcT2.setProperty({visible:false});
| |
− | funcC2.setProperty({visible:true});
| |
− | funcGS2.setProperty({visible:false});
| |
− | funcRS2.setProperty({visible:false});
| |
− | funcDS2.setProperty({visible:false});
| |
− | funcTS2.setProperty({visible:false});
| |
− | funcCS2.setProperty({visible:true});
| |
− | txtG2.setProperty({visible:false});
| |
− | txtR2.setProperty({visible:false});
| |
− | txtD2.setProperty({visible:false});
| |
− | txtT2.setProperty({visible:false});
| |
− | txtC2.setProperty({visible:true});
| |
− | txtGS2.setProperty({visible:false});
| |
− | txtRS2.setProperty({visible:false});
| |
− | txtDS2.setProperty({visible:false});
| |
− | txtTS2.setProperty({visible:false});
| |
− | txtCS2.setProperty({visible:true});
| |
− | };
| |
− | | |
− | function impuls2I() {
| |
− | funcG2.setProperty({visible:false});
| |
− | funcR2.setProperty({visible:false});
| |
− | funcD2.setProperty({visible:false});
| |
− | funcT2.setProperty({visible:false});
| |
− | funcC2.setProperty({visible:false});
| |
− | funcGS2.setProperty({visible:false});
| |
− | funcRS2.setProperty({visible:false});
| |
− | funcDS2.setProperty({visible:false});
| |
− | funcTS2.setProperty({visible:false});
| |
− | funcCS2.setProperty({visible:false});
| |
− | txtG2.setProperty({visible:false});
| |
− | txtR2.setProperty({visible:false});
| |
− | txtD2.setProperty({visible:false});
| |
− | txtT2.setProperty({visible:false});
| |
− | txtC2.setProperty({visible:false});
| |
− | txtGS2.setProperty({visible:false});
| |
− | txtRS2.setProperty({visible:false});
| |
− | txtDS2.setProperty({visible:false});
| |
− | txtTS2.setProperty({visible:false});
| |
− | txtCS2.setProperty({visible:false});
| |
− | };
| |
− | | |
− | | |
− | | |
− | //Definition der Zeige und Verstecke Koordinatensystemfunktion
| |
− | | |
− | function showgrid() {
| |
− | if (gridbox.checked) {
| |
− | xaxis1 = pltBox1.create('axis', [[0, 0], [1,0]], {});
| |
− | yaxis1 = pltBox1.create('axis', [[0, 0], [0, 1]], {});
| |
− | xaxis2 = pltBox2.create('axis', [[0, 0], [1, 0]], {});
| |
− | yaxis2 = pltBox2.create('axis', [[0, 0], [0, 1]], {});
| |
− | } | |
− | else {
| |
− | xaxis1.removeTicks(xaxis1.defaultTicks);
| |
− | yaxis1.removeTicks(yaxis1.defaultTicks);
| |
− | xaxis2.removeTicks(xaxis2.defaultTicks);
| |
− | yaxis2.removeTicks(yaxis2.defaultTicks);
| |
− | } | |
− | pltBox1.fullUpdate();
| |
− | pltBox2.fullUpdate();
| |
− | }; | |
| </script> | | </script> |
− |
| |
− | </form>
| |
− |
| |
− | <script>
| |
− |
| |
− | //Definition des Reset-Buttons
| |
− | function zurueck() {
| |
− | document.getElementById("myForm").reset();
| |
− | };
| |
− | </script>
| |
− |
| |
| </body> | | </body> |
| </html> | | </html> |