예제 #1
0
 public string getValue()
 {
     if (Phase == 0.0)
     {
         return(Amplitude.ToString("#.##") + "*sin( " + w.ToString("#.##") + "t)");
     }
     else
     {
         return(Amplitude.ToString("#.##") + "*sin( " + w.ToString("#.##") + "t + " + Phase.ToString("#.##") + ")");
     }
 }
예제 #2
0
 public override string ToString()
 {
     return("Amp: " + Amplitude.ToString() +
            ", Freq: " + Frequency.ToString() + ", Wave: " + WaveType);
 }
예제 #3
0
 public string getValue()
 {
     return(Amplitude.ToString() + "*sin( " + w.ToString("#.##") + "t + " + Phase.ToString() + ")");
 }