Difference between revisions of "Applets:Spektrum"
From LNTwww
David.Jobst (talk | contribs) |
David.Jobst (talk | contribs) |
||
Line 159: | Line 159: | ||
//Definition der Texte für die Funktionswerte von Impuls 1 | //Definition der Texte für die Funktionswerte von Impuls 1 | ||
− | + | 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 170: | Line 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()) | 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 176: | 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}); | ||
− | + | 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 193: | Line 193: | ||
{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}); |
Revision as of 14:04, 18 September 2017
Impuls 1
Impuls 2