Applets:Spektrum: Unterschied zwischen den Versionen
Aus LNTwww
Zeile 2: | Zeile 2: | ||
<head> | <head> | ||
<meta charset="utf-8" /> | <meta charset="utf-8" /> | ||
− | <script type="text/javascript" src=" | + | <script type="text/javascript" src="http://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> | ||
Zeile 54: | Zeile 54: | ||
<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><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> | ||
− | <div id="pltBox1" class="jxgbox" style="width:600px; height:300px; border:1px solid black; margin: | + | <div id="pltBox1" class="jxgbox" style="width:600px; height:300px; border:1px solid black; margin:50px 20px 100px 220px;"></div> |
<div id="pltBox2" class="jxgbox" style="width:600px; height:300px; border:1px solid black; margin:50px 20px 100px 220px;"></div> | <div id="pltBox2" class="jxgbox" style="width:600px; height:300px; border:1px solid black; margin:50px 20px 100px 220px;"></div> | ||
<div id="cnfBox1" class="jxgbox" style="width:200px; height:600px; border:1px solid black; margin:-805px 10px 100px 10px;"></div> | <div id="cnfBox1" class="jxgbox" style="width:200px; height:600px; border:1px solid black; margin:-805px 10px 100px 10px;"></div> | ||
Zeile 152: | Zeile 152: | ||
snapWidth:0.05 | snapWidth:0.05 | ||
}), | }), | ||
− | |||
//Substituierte Hilfswerte | //Substituierte Hilfswerte | ||
Zeile 186: | Zeile 185: | ||
var txtDS1=cnfBox1.create('text',[0,0, function() | var txtDS1=cnfBox1.create('text',[0,0, function() | ||
{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 +' \\]' ;}], | {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 +' \\]' ;}], | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{fixed:true, strokeColor:'red', visible:false}); | {fixed:true, strokeColor:'red', visible:false}); | ||
Zeile 225: | Zeile 218: | ||
{fixed:true, strokeColor:'blue', visible:false}); | {fixed:true, strokeColor:'blue', visible:false}); | ||
+ | |||
+ | //Definition der Zeitfunktionen von Impuls 1 | ||
var funcG1 = pltBox1.create('functiongraph',[function(x) | var funcG1 = pltBox1.create('functiongraph',[function(x) | ||
{return (sldA1.Value()*Math.exp(-1*Math.PI*(x/sldDT1.Value())*(x/sldDT1.Value())))}], | {return (sldA1.Value()*Math.exp(-1*Math.PI*(x/sldDT1.Value())*(x/sldDT1.Value())))}], | ||
Zeile 242: | Zeile 237: | ||
{return 0;}}], | {return 0;}}], | ||
{strokeColor: "red", visible: false}); | {strokeColor: "red", visible: false}); | ||
+ | |||
//Definition der Spektralfunktionen von Impuls 1 | //Definition der Spektralfunktionen von Impuls 1 | ||
Zeile 252: | Zeile 248: | ||
var funcDS1 = pltBox2.create('functiongraph',[function(x){ | 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))}], | return (sldA1.Value()*sldDT1.Value()*Math.pow(Math.sin(Math.PI*sldDT1.Value()*x)/(Math.PI*sldDT1.Value()*x),2))}], | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{strokeColor: "red", visible: false}); | {strokeColor: "red", visible: false}); | ||
Zeile 288: | Zeile 278: | ||
var funcDS2 = pltBox2.create('functiongraph',[function(x){ | 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))}], | return (sldA2.Value()*sldDT2.Value()*Math.pow(Math.sin(Math.PI*sldDT2.Value()*x)/(Math.PI*sldDT2.Value()*x),2))}], | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{strokeColor: "blue", visible: false}); | {strokeColor: "blue", visible: false}); | ||
Zeile 597: | Zeile 581: | ||
txtCS2.setProperty({visible:false}); | txtCS2.setProperty({visible:false}); | ||
}; | }; | ||
+ | |||
Zeile 621: | Zeile 606: | ||
</form> | </form> | ||
+ | <script> | ||
+ | |||
+ | //Definition des Reset-Buttons | ||
+ | function zurueck() { | ||
+ | document.getElementById("myForm").reset(); | ||
+ | }; | ||
+ | </script> | ||
</body> | </body> | ||
</html> | </html> | ||
− | |||
{{Display}} | {{Display}} |
Version vom 18. September 2017, 14:23 Uhr
Impuls 1
Impuls 2