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