Difference between revisions of "Applets:Spektrum"
From LNTwww
David.Jobst (talk | contribs) |
David.Jobst (talk | contribs) |
||
Line 2: | Line 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> | ||
Line 54: | Line 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> | ||
Line 152: | Line 152: | ||
snapWidth:0.05 | snapWidth:0.05 | ||
}), | }), | ||
− | |||
//Substituierte Hilfswerte | //Substituierte Hilfswerte | ||
Line 186: | Line 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}); | ||
Line 225: | Line 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())))}], | ||
Line 242: | Line 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 | ||
Line 252: | Line 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}); | ||
Line 288: | Line 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}); | ||
Line 597: | Line 581: | ||
txtCS2.setProperty({visible:false}); | txtCS2.setProperty({visible:false}); | ||
}; | }; | ||
+ | |||
Line 621: | Line 606: | ||
</form> | </form> | ||
+ | <script> | ||
+ | |||
+ | //Definition des Reset-Buttons | ||
+ | function zurueck() { | ||
+ | document.getElementById("myForm").reset(); | ||
+ | }; | ||
+ | </script> | ||
</body> | </body> | ||
</html> | </html> | ||
− | |||
{{Display}} | {{Display}} |
Revision as of 14:23, 18 September 2017
Impuls 1
Impuls 2