Applets:Spektrum: Unterschied zwischen den Versionen

Aus LNTwww
Wechseln zu:Navigation, Suche
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});
txtD1=cnfBox1.create('text',[0,0.1, function(){
 
        if (Math.abs(sldT.Value())<sldDT1.Value())
 
                          {return '\\[x(t)= '+ Math.round((sldA1.Value()*(1-Math.abs(sldT.Value())/sldDT1.Value()))*1000)/1000 +' \\]';}
 
        else
 
                          {return '\\[x(t)= '+ Math.round((0)*1000)/1000 +' \\]';}}],
 
        {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))
 
                          {return '\\[x(t)= '+ Math.round((sldA1.Value())*1000)/1000 +' \\]';}
 
            else if (((sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2)<= Math.abs(sldT.Value())) && (Math.abs(sldT.Value())<=((sldR1.Value()*sldDT1.Value())/2+sldDT1.Value()/2)))
 
                          {return '\\[x(t)= '+ Math.round((sldA1.Value()*(((sldR1.Value()*sldDT1.Value())/2+sldDT1.Value()/2)-Math.abs(sldT.Value()))/(((sldR1.Value()*sldDT1.Value())/2+sldDT1.Value()/2)-(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2)))*1000)/1000 +' \\]'}
 
            else
 
                          {return '\\[x(t)= '+ Math.round((0)*1000)/1000 +' \\]'}}],
 
            {fixed:true, strokeColor:'red', visible:false});
 
var txtC1=cnfBox1.create('text',[0,0.1, function(){
 
            if (Math.abs(sldT.Value())<=(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2))
 
                          {return '\\[x(t)= '+ Math.round((sldA1.Value())*1000)/1000 +' \\]';}
 
            else if (((sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2)<=Math.abs(sldT.Value())) && (Math.abs(sldT.Value())<=((sldR1.Value()*sldDT1.Value())/2+sldDT1.Value()/2)))
 
                          {return '\\[x(t)= '+ Math.round((sldA1.Value()*Math.cos((Math.abs(sldT.Value())-(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2))/(((sldR1.Value()*sldDT1.Value())/2+sldDT1.Value()/2)-(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2))*(Math.PI/2))*Math.cos((Math.abs(sldT.Value())-(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2))/(((sldR1.Value()*sldDT1.Value())/2+sldDT1.Value()/2)-(sldDT1.Value()/2-(sldR1.Value()*sldDT1.Value())/2))*(Math.PI/2)))*1000)/1000 +' \\]';}
 
            else
 
                          {return '\\[x(t)= '+ Math.round((0)*1000)/1000 +' \\]'}}],
 
            {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 +' \\]' ;}],
 
                          {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 +' \\]' ;}],
 
                          {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 +' \\]' ;}],
 
                          {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 +' \\]' ;}],
 
                          {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 +' \\]' ;}],
 
                          {fixed:true, strokeColor:'red', visible:false});
 
  
  

Version vom 18. September 2017, 14:05 Uhr

Impuls 1

Impuls 2

mit Gitter