Applets:Spektrum: Unterschied zwischen den Versionen

Aus LNTwww
Wechseln zu:Navigation, Suche
Zeile 159: Zeile 159:
  
 
//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()
+
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 170: Zeile 170:
 
                           {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 176: 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 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 193: Zeile 193:
 
             {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});

Version vom 18. September 2017, 14:04 Uhr

Impuls 1

Impuls 2

mit Gitter