Difference between revisions of "Applets:Spektrum"
From LNTwww
David.Jobst (talk | contribs) |
David.Jobst (talk | contribs) |
||
Line 10: | Line 10: | ||
<meta charset="utf-8" /> | <meta charset="utf-8" /> | ||
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jsxgraph/0.99.6/jsxgraphcore.js"></script> | <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> | |
<style> | <style> | ||
.button1{ | .button1{ | ||
Line 57: | Line 57: | ||
</span></B></p> | </span></B></p> | ||
− | + | <form id="myForm"> | |
+ | <button class="button1" style="font-size:0.750em" onclick="zurueck()">Reset</button> | ||
<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> | ||
Line 164: | Line 165: | ||
//Definition der Texte für die Funktionswerte von Impuls 1 | //Definition der Texte für die Funktionswerte von Impuls 1 | ||
− | + | impuls2 txtG1=cnfBox1.create('text',[0,0.1, function() | |
{return '\\[x(t)= '+ Math.round((sldA1.Value()*Math.exp(-1*Math.PI*(sldT.Value()/sldDT1.Value())*(sldT.Value()/sldDT1.Value())))*1000)/1000 +' \\]';}], | {return '\\[x(t)= '+ Math.round((sldA1.Value()*Math.exp(-1*Math.PI*(sldT.Value()/sldDT1.Value())*(sldT.Value()/sldDT1.Value())))*1000)/1000 +' \\]';}], | ||
{fixed:true, strokeColor:'red', visible:true}); | {fixed:true, strokeColor:'red', visible:true}); | ||
− | + | txtR1=cnfBox1.create('text',[0,0.1, function(){ | |
if (Math.abs(sldT.Value())<sldDT1.Value()/2) | if (Math.abs(sldT.Value())<sldDT1.Value()/2) | ||
{return '\\[x(t)= '+ Math.round((sldA1.Value())*1000)/1000 +' \\]';} | {return '\\[x(t)= '+ Math.round((sldA1.Value())*1000)/1000 +' \\]';} | ||
Line 175: | Line 176: | ||
{return '\\[x(t)= '+ Math.round((0)*1000)/1000 +' \\]';}}], | {return '\\[x(t)= '+ Math.round((0)*1000)/1000 +' \\]';}}], | ||
{fixed:true, strokeColor:'red', visible:false}); | {fixed:true, strokeColor:'red', visible:false}); | ||
− | + | txtD1=cnfBox1.create('text',[0,0.1, function(){ | |
if (Math.abs(sldT.Value())<sldDT1.Value()) | if (Math.abs(sldT.Value())<sldDT1.Value()) | ||
{return '\\[x(t)= '+ Math.round((sldA1.Value()*(1-Math.abs(sldT.Value())/sldDT1.Value()))*1000)/1000 +' \\]';} | {return '\\[x(t)= '+ Math.round((sldA1.Value()*(1-Math.abs(sldT.Value())/sldDT1.Value()))*1000)/1000 +' \\]';} | ||
Line 181: | Line 182: | ||
{return '\\[x(t)= '+ Math.round((0)*1000)/1000 +' \\]';}}], | {return '\\[x(t)= '+ Math.round((0)*1000)/1000 +' \\]';}}], | ||
{fixed:true, strokeColor:'red', visible:false}); | {fixed:true, strokeColor:'red', visible:false}); | ||
− | + | txtT1=cnfBox1.create('text',[0,0.1, function(){ | |
if (Math.abs(sldT.Value())<=(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2)) | if (Math.abs(sldT.Value())<=(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2)) | ||
{return '\\[x(t)= '+ Math.round((sldA1.Value())*1000)/1000 +' \\]';} | {return '\\[x(t)= '+ Math.round((sldA1.Value())*1000)/1000 +' \\]';} | ||
Line 189: | Line 190: | ||
{return '\\[x(t)= '+ Math.round((0)*1000)/1000 +' \\]'}}], | {return '\\[x(t)= '+ Math.round((0)*1000)/1000 +' \\]'}}], | ||
{fixed:true, strokeColor:'red', visible:false}); | {fixed:true, strokeColor:'red', visible:false}); | ||
− | + | txtC1=cnfBox1.create('text',[0,0.1, function(){ | |
if (Math.abs(sldT.Value())<=(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2)) | if (Math.abs(sldT.Value())<=(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2)) | ||
{return '\\[x(t)= '+ Math.round((sldA1.Value())*1000)/1000 +' \\]';} | {return '\\[x(t)= '+ Math.round((sldA1.Value())*1000)/1000 +' \\]';} | ||
Line 198: | Line 199: | ||
{fixed:true, strokeColor:'red', visible:false}); | {fixed:true, strokeColor:'red', visible:false}); | ||
− | + | txtGS1=cnfBox1.create('text',[0,0, function() | |
{return '\\[X(f)= '+ Math.round((sldA1.Value()*sldDT1.Value()*Math.exp(-1*Math.PI*(sldF.Value()*sldDT1.Value())*(sldF.Value()*sldDT1.Value())))*1000)/1000 +' \\]' ;}], | {return '\\[X(f)= '+ Math.round((sldA1.Value()*sldDT1.Value()*Math.exp(-1*Math.PI*(sldF.Value()*sldDT1.Value())*(sldF.Value()*sldDT1.Value())))*1000)/1000 +' \\]' ;}], | ||
{fixed:true, strokeColor:'red', visible:true}); | {fixed:true, strokeColor:'red', visible:true}); | ||
− | + | txtRS1=cnfBox1.create('text',[0,0, function() | |
{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 +' \\]' ;}], | {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 +' \\]' ;}], | ||
{fixed:true, strokeColor:'red', visible:false}); | {fixed:true, strokeColor:'red', visible:false}); | ||
− | + | 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}); | ||
− | + | txtTS1=cnfBox1.create('text',[0,0, function() | |
{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 +' \\]' ;}], | {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}); | {fixed:true, strokeColor:'red', visible:false}); | ||
− | + | 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 +' \\]' ;}], | {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}); | {fixed:true, strokeColor:'red', visible:false}); | ||
Line 216: | Line 217: | ||
//Definition der Texte für die Funktionswerte von Impuls 2 | //Definition der Texte für die Funktionswerte von Impuls 2 | ||
− | + | 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 +' \\]' ;}], | {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}); | {fixed:true, strokeColor:'blue', visible:false}); | ||
− | + | txtR2=cnfBox2.create('text',[-2,0.1, function(){ | |
if (Math.abs(sldT.Value())<sldDT2.Value()/2) | if (Math.abs(sldT.Value())<sldDT2.Value()/2) | ||
{return '\\[x(t)= '+ Math.round((sldA2.Value())*1000)/1000 +' \\]';} | {return '\\[x(t)= '+ Math.round((sldA2.Value())*1000)/1000 +' \\]';} | ||
Line 227: | Line 228: | ||
{return '\\[x(t)= '+ Math.round((0)*1000)/1000 +' \\]';}}], | {return '\\[x(t)= '+ Math.round((0)*1000)/1000 +' \\]';}}], | ||
{fixed:true, strokeColor:'blue', visible:false}); | {fixed:true, strokeColor:'blue', visible:false}); | ||
− | + | txtD2=cnfBox2.create('text',[-2,0.1, function(){ | |
if (Math.abs(sldT.Value())<sldDT2.Value()) | if (Math.abs(sldT.Value())<sldDT2.Value()) | ||
{return '\\[x(t)= '+ Math.round((sldA2.Value()*(1-Math.abs(sldT.Value())/sldDT2.Value()))*1000)/1000 +' \\]';} | {return '\\[x(t)= '+ Math.round((sldA2.Value()*(1-Math.abs(sldT.Value())/sldDT2.Value()))*1000)/1000 +' \\]';} | ||
Line 233: | Line 234: | ||
{return '\\[x(t)= '+ Math.round((0)*1000)/1000 +' \\]';}}], | {return '\\[x(t)= '+ Math.round((0)*1000)/1000 +' \\]';}}], | ||
{fixed:true, strokeColor:'blue', visible:false}); | {fixed:true, strokeColor:'blue', visible:false}); | ||
− | + | txtT2=cnfBox2.create('text',[-2,0.1, function(){ | |
if (Math.abs(sldT.Value())<=(sldDT2.Value()/2-(sldR2.Value()*sldDT2.Value())/2)) | if (Math.abs(sldT.Value())<=(sldDT2.Value()/2-(sldR2.Value()*sldDT2.Value())/2)) | ||
{return '\\[x(t)= '+ Math.round((sldA2.Value())*1000)/1000 +' \\]';} | {return '\\[x(t)= '+ Math.round((sldA2.Value())*1000)/1000 +' \\]';} | ||
Line 241: | Line 242: | ||
{return '\\[x(t)= '+ Math.round((0)*1000)/1000 +' \\]'}}], | {return '\\[x(t)= '+ Math.round((0)*1000)/1000 +' \\]'}}], | ||
{fixed:true, strokeColor:'blue', visible:true}); | {fixed:true, strokeColor:'blue', visible:true}); | ||
− | + | txtC2=cnfBox2.create('text',[-2,0.1, function(){ | |
if (Math.abs(sldT.Value())<=(sldDT2.Value()/2-(sldR2.Value()*sldDT2.Value())/2)) | if (Math.abs(sldT.Value())<=(sldDT2.Value()/2-(sldR2.Value()*sldDT2.Value())/2)) | ||
{return '\\[x(t)= '+ Math.round((sldA2.Value())*1000)/1000 +' \\]';} | {return '\\[x(t)= '+ Math.round((sldA2.Value())*1000)/1000 +' \\]';} | ||
Line 250: | Line 251: | ||
{fixed:true, strokeColor:'blue', visible:false}); | {fixed:true, strokeColor:'blue', visible:false}); | ||
− | + | 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 +' \\]' ;}], | {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}); | {fixed:true, strokeColor:'blue', visible:false}); | ||
− | + | 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 +' \\]' ;}], | {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}); | {fixed:true, strokeColor:'blue', visible:false}); | ||
− | + | 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 +' \\]' ;}], | {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}); | {fixed:true, strokeColor:'blue', visible:false}); | ||
− | + | 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 +' \\]' ;}], | {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}); | {fixed:true, strokeColor:'blue', visible:true}); | ||
− | + | 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 +' \\]' ;}], | {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}); | {fixed:true, strokeColor:'blue', visible:false}); | ||
Line 268: | Line 269: | ||
//Definition der Zeitfunktionen von Impuls 1 | //Definition der Zeitfunktionen von Impuls 1 | ||
− | + | 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())))}], | ||
{strokeColor: "red", visible: true}); | {strokeColor: "red", visible: true}); | ||
− | + | funcR1 = pltBox1.create('functiongraph',[function(x){ | |
if (Math.abs(x)<sldDT1.Value()/2) | if (Math.abs(x)<sldDT1.Value()/2) | ||
{return sldA1.Value();} | {return sldA1.Value();} | ||
Line 279: | Line 280: | ||
{return 0;}}], | {return 0;}}], | ||
{strokeColor: "red", visible: false}); | {strokeColor: "red", visible: false}); | ||
− | + | funcD1 = pltBox1.create('functiongraph',[function(x){ | |
if (Math.abs(x)<sldDT1.Value()) | if (Math.abs(x)<sldDT1.Value()) | ||
{return sldA1.Value()*(1-Math.abs(x)/sldDT1.Value());} | {return sldA1.Value()*(1-Math.abs(x)/sldDT1.Value());} | ||
Line 285: | Line 286: | ||
{return 0;}}], | {return 0;}}], | ||
{strokeColor: "red", visible: false}); | {strokeColor: "red", visible: false}); | ||
− | + | funcT1 = pltBox1.create('functiongraph',[function(x){ | |
if (Math.abs(x)<=(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2)) | if (Math.abs(x)<=(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2)) | ||
{return sldA1.Value();} | {return sldA1.Value();} | ||
Line 293: | Line 294: | ||
{return 0}}], | {return 0}}], | ||
{strokeColor: "red", visible: false}); | {strokeColor: "red", visible: false}); | ||
− | + | funcC1 = pltBox1.create('functiongraph',[function(x){ | |
if (Math.abs(x)<=(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2)) | if (Math.abs(x)<=(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2)) | ||
{return sldA1.Value();} | {return sldA1.Value();} | ||
Line 303: | Line 304: | ||
//Definition der Spektralfunktionen von Impuls 1 | //Definition der Spektralfunktionen von Impuls 1 | ||
− | + | funcGS1 = pltBox2.create('functiongraph',[function(x){ | |
return (sldA1.Value()*sldDT1.Value()*Math.exp(-1*Math.PI*(x*sldDT1.Value())*(x*sldDT1.Value())))}], | return (sldA1.Value()*sldDT1.Value()*Math.exp(-1*Math.PI*(x*sldDT1.Value())*(x*sldDT1.Value())))}], | ||
{strokeColor: "red", visible: true}); | {strokeColor: "red", visible: true}); | ||
− | + | funcRS1 = pltBox2.create('functiongraph',[function(x){ | |
return (sldA1.Value()*sldDT1.Value()*Math.sin(Math.PI*sldDT1.Value()*x)/(Math.PI*sldDT1.Value()*x))}], | return (sldA1.Value()*sldDT1.Value()*Math.sin(Math.PI*sldDT1.Value()*x)/(Math.PI*sldDT1.Value()*x))}], | ||
{strokeColor: "red", visible: false}); | {strokeColor: "red", visible: false}); | ||
− | + | 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}); | ||
− | + | 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)))}], | 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}); | {strokeColor: "red", visible: false}); | ||
− | + | 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)))}], | 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}); | {strokeColor: "red", visible: false}); | ||
//Definition der Zeitfunktionen von Impuls 2 | //Definition der Zeitfunktionen von Impuls 2 | ||
− | + | funcG2 = pltBox1.create('functiongraph',[function(x){ | |
return (sldA2.Value()*Math.exp(-1*Math.PI*(x/sldDT2.Value())*(x/sldDT2.Value())))}], | return (sldA2.Value()*Math.exp(-1*Math.PI*(x/sldDT2.Value())*(x/sldDT2.Value())))}], | ||
{strokeColor: "blue", visible: false}); | {strokeColor: "blue", visible: false}); | ||
− | + | funcR2 = pltBox1.create('functiongraph',[function(x){ | |
if (Math.abs(x)<sldDT2.Value()/2) | if (Math.abs(x)<sldDT2.Value()/2) | ||
{return sldA2.Value();} | {return sldA2.Value();} | ||
Line 331: | Line 332: | ||
{return 0;}}], | {return 0;}}], | ||
{strokeColor: "blue", visible: false}); | {strokeColor: "blue", visible: false}); | ||
− | + | funcD2 = pltBox1.create('functiongraph',[function(x){ | |
if (Math.abs(x)<sldDT2.Value()) | if (Math.abs(x)<sldDT2.Value()) | ||
{return sldA2.Value()*(1-Math.abs(x)/sldDT2.Value());} | {return sldA2.Value()*(1-Math.abs(x)/sldDT2.Value());} | ||
Line 337: | Line 338: | ||
{return 0;}}], | {return 0;}}], | ||
{strokeColor: "blue", visible: false}); | {strokeColor: "blue", visible: false}); | ||
− | + | funcT2 = pltBox1.create('functiongraph',[function(x){ | |
if (Math.abs(x)<=(sldDT2.Value()/2-(sldR2.Value()*sldDT2.Value())/2)) | if (Math.abs(x)<=(sldDT2.Value()/2-(sldR2.Value()*sldDT2.Value())/2)) | ||
{return sldA2.Value();} | {return sldA2.Value();} | ||
Line 345: | Line 346: | ||
{return 0}}], | {return 0}}], | ||
{strokeColor: "blue", visible: true}); | {strokeColor: "blue", visible: true}); | ||
− | + | funcC2 = pltBox1.create('functiongraph',[function(x){ | |
if (Math.abs(x)<=(sldDT2.Value()/2-(sldR2.Value()*sldDT2.Value())/2)) | if (Math.abs(x)<=(sldDT2.Value()/2-(sldR2.Value()*sldDT2.Value())/2)) | ||
{return sldA2.Value();} | {return sldA2.Value();} | ||
Line 355: | Line 356: | ||
//Definition der Spektralfunktionen von Impuls 2 | //Definition der Spektralfunktionen von Impuls 2 | ||
− | + | funcGS2 = pltBox2.create('functiongraph',[function(x){ | |
return (sldA2.Value()*sldDT2.Value()*Math.exp(-1*Math.PI*(x*sldDT2.Value())*(x*sldDT2.Value())))}], | return (sldA2.Value()*sldDT2.Value()*Math.exp(-1*Math.PI*(x*sldDT2.Value())*(x*sldDT2.Value())))}], | ||
{strokeColor: "blue", visible: false}); | {strokeColor: "blue", visible: false}); | ||
− | + | funcRS2 = pltBox2.create('functiongraph',[function(x){ | |
return (sldA2.Value()*sldDT2.Value()*Math.sin(Math.PI*sldDT2.Value()*x)/(Math.PI*sldDT2.Value()*x))}], | return (sldA2.Value()*sldDT2.Value()*Math.sin(Math.PI*sldDT2.Value()*x)/(Math.PI*sldDT2.Value()*x))}], | ||
{strokeColor: "blue", visible: false}); | {strokeColor: "blue", visible: false}); | ||
− | + | 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}); | ||
− | + | 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)))}], | 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}); | {strokeColor: "blue", visible: true}); | ||
− | + | 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)))}], | 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}); | {strokeColor: "blue", visible: false}); | ||
Line 373: | Line 374: | ||
//Definition der Dropdownlisten dropdown1 und dropdown2 | //Definition der Dropdownlisten dropdown1 und dropdown2 | ||
− | + | change1 = function(obj) { | |
− | + | var v = obj.value; | |
if (v=='0') { impuls1G();} | if (v=='0') { impuls1G();} | ||
else if (v=='1') { impuls1R();} | else if (v=='1') { impuls1R();} | ||
Line 383: | Line 384: | ||
}; | }; | ||
− | + | change2 = function(obj) { | |
var v = obj.value; | var v = obj.value; | ||
if (v=='0') { impuls2G();} | if (v=='0') { impuls2G();} | ||
Line 695: | Line 696: | ||
</script> | </script> | ||
+ | </form> | ||
+ | |||
+ | <script> | ||
+ | //Definition des Reset-Buttons | ||
+ | function zurueck() { | ||
+ | document.getElementById("myForm").reset(); | ||
+ | }; | ||
+ | </script> | ||
</body> | </body> |