Applets:Spektrum: Unterschied zwischen den Versionen

Aus LNTwww
Wechseln zu:Navigation, Suche
Zeile 10: Zeile 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{
Zeile 57: Zeile 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>
  
Zeile 164: Zeile 165:
  
 
//Definition der Texte für die Funktionswerte von Impuls 1
 
//Definition der Texte für die Funktionswerte von Impuls 1
var txtG1=cnfBox1.create('text',[0,0.1, function()
+
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});
var txtR1=cnfBox1.create('text',[0,0.1, function(){
+
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 +' \\]';}
Zeile 175: Zeile 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});
var txtD1=cnfBox1.create('text',[0,0.1, function(){
+
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 +' \\]';}
Zeile 181: Zeile 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});
var txtT1=cnfBox1.create('text',[0,0.1, function(){
+
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 +' \\]';}
Zeile 189: Zeile 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});
var txtC1=cnfBox1.create('text',[0,0.1, function(){
+
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 +' \\]';}
Zeile 198: Zeile 199:
 
             {fixed:true, strokeColor:'red', visible:false});
 
             {fixed:true, strokeColor:'red', visible:false});
  
var txtGS1=cnfBox1.create('text',[0,0, function()
+
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});
var txtRS1=cnfBox1.create('text',[0,0, function()
+
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});
var txtDS1=cnfBox1.create('text',[0,0, function()
+
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});
var txtTS1=cnfBox1.create('text',[0,0, function()
+
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});
var txtCS1=cnfBox1.create('text',[0,0, function()
+
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});
Zeile 216: Zeile 217:
 
//Definition der Texte für die Funktionswerte von Impuls 2
 
//Definition der Texte für die Funktionswerte von Impuls 2
  
var txtG2=cnfBox2.create('text',[-2,0.1, function()
+
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});
var txtR2=cnfBox2.create('text',[-2,0.1, function(){
+
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 +' \\]';}
Zeile 227: Zeile 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});
var txtD2=cnfBox2.create('text',[-2,0.1, function(){
+
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 +' \\]';}
Zeile 233: Zeile 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});
var txtT2=cnfBox2.create('text',[-2,0.1, function(){
+
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 +' \\]';}
Zeile 241: Zeile 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});
var txtC2=cnfBox2.create('text',[-2,0.1, function(){
+
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 +' \\]';}
Zeile 250: Zeile 251:
 
             {fixed:true, strokeColor:'blue', visible:false});
 
             {fixed:true, strokeColor:'blue', visible:false});
  
var txtGS2=cnfBox2.create('text',[-2,0, function()
+
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});
var txtRS2=cnfBox2.create('text',[-2,0, function()
+
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});
var txtDS2=cnfBox2.create('text',[-2,0, function()
+
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});
var txtTS2=cnfBox2.create('text',[-2,0, function()
+
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});
var txtCS2=cnfBox2.create('text',[-2,0, function()
+
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});
Zeile 268: Zeile 269:
  
 
//Definition der Zeitfunktionen von Impuls 1
 
//Definition der Zeitfunktionen von Impuls 1
var funcG1 = pltBox1.create('functiongraph',[function(x)
+
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});
var funcR1 = pltBox1.create('functiongraph',[function(x){
+
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();}
Zeile 279: Zeile 280:
 
                           {return 0;}}],
 
                           {return 0;}}],
 
             {strokeColor: "red", visible: false});
 
             {strokeColor: "red", visible: false});
var funcD1 = pltBox1.create('functiongraph',[function(x){
+
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());}
Zeile 285: Zeile 286:
 
                           {return 0;}}],
 
                           {return 0;}}],
 
             {strokeColor: "red", visible: false});
 
             {strokeColor: "red", visible: false});
var funcT1 = pltBox1.create('functiongraph',[function(x){
+
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();}
Zeile 293: Zeile 294:
 
                           {return 0}}],
 
                           {return 0}}],
 
             {strokeColor: "red", visible: false});
 
             {strokeColor: "red", visible: false});
var funcC1 = pltBox1.create('functiongraph',[function(x){
+
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();}
Zeile 303: Zeile 304:
  
 
//Definition der Spektralfunktionen von Impuls 1
 
//Definition der Spektralfunktionen von Impuls 1
var funcGS1 = pltBox2.create('functiongraph',[function(x){
+
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});
var funcRS1 = pltBox2.create('functiongraph',[function(x){
+
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});
var funcDS1 = pltBox2.create('functiongraph',[function(x){
+
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});
var funcTS1 = pltBox2.create('functiongraph',[function(x){
+
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});
var funcCS1 = pltBox2.create('functiongraph',[function(x){
+
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
var funcG2 = pltBox1.create('functiongraph',[function(x){
+
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});
var funcR2 = pltBox1.create('functiongraph',[function(x){
+
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();}
Zeile 331: Zeile 332:
 
                           {return 0;}}],
 
                           {return 0;}}],
 
             {strokeColor: "blue", visible: false});
 
             {strokeColor: "blue", visible: false});
var funcD2 = pltBox1.create('functiongraph',[function(x){
+
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());}
Zeile 337: Zeile 338:
 
                           {return 0;}}],
 
                           {return 0;}}],
 
             {strokeColor: "blue", visible: false});
 
             {strokeColor: "blue", visible: false});
var funcT2 = pltBox1.create('functiongraph',[function(x){
+
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();}
Zeile 345: Zeile 346:
 
                           {return 0}}],
 
                           {return 0}}],
 
             {strokeColor: "blue", visible: true});
 
             {strokeColor: "blue", visible: true});
var funcC2 = pltBox1.create('functiongraph',[function(x){
+
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();}
Zeile 355: Zeile 356:
  
 
//Definition der Spektralfunktionen von Impuls 2
 
//Definition der Spektralfunktionen von Impuls 2
var funcGS2 = pltBox2.create('functiongraph',[function(x){
+
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});
var funcRS2 = pltBox2.create('functiongraph',[function(x){
+
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});
var funcDS2 = pltBox2.create('functiongraph',[function(x){
+
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});
var funcTS2 = pltBox2.create('functiongraph',[function(x){
+
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});
var funcCS2 = pltBox2.create('functiongraph',[function(x){
+
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});
Zeile 373: Zeile 374:
  
 
//Definition der Dropdownlisten dropdown1 und dropdown2
 
//Definition der Dropdownlisten dropdown1 und dropdown2
var change1 = function(obj) {
+
change1 = function(obj) {
var v = obj.value;
+
  var v = obj.value;
 
  if (v=='0')          { impuls1G();}
 
  if (v=='0')          { impuls1G();}
 
  else if (v=='1')      { impuls1R();}
 
  else if (v=='1')      { impuls1R();}
Zeile 383: Zeile 384:
 
  };
 
  };
  
var change2 = function(obj) {
+
change2 = function(obj) {
 
   var v = obj.value;
 
   var v = obj.value;
 
   if (v=='0')          { impuls2G();}
 
   if (v=='0')          { impuls2G();}
Zeile 695: Zeile 696:
 
</script>
 
</script>
  
 +
</form>
 +
 +
<script>
  
 +
//Definition des Reset-Buttons
 +
function zurueck() {
 +
    document.getElementById("myForm").reset();
 +
};
 +
</script>
  
 
</body>
 
</body>

Version vom 18. September 2017, 12:49 Uhr

Impuls 1

Impuls 2

mit Gitter