public static bool SimplifyFactors(SignalSet signals) { Signal zero; if (signals.Exists(Std.IsConstantAdditiveIdentity, out zero)) { signals.Clear(); signals.Add(zero); return(true); } return(0 < signals.RemoveAll(Std.IsConstantMultiplicativeIdentity)); }
public static bool SimplifyFactors(SignalSet signals) { Signal zero; if(signals.Exists(Std.IsConstantAdditiveIdentity, out zero)) { signals.Clear(); signals.Add(zero); return true; } return 0 < signals.RemoveAll(Std.IsConstantMultiplicativeIdentity); }
public static bool SimplifySummands(SignalSet signals) { return(0 < signals.RemoveAll(Std.IsConstantAdditiveIdentity)); }
public static bool SimplifySummands(SignalSet signals) { return 0 < signals.RemoveAll(Std.IsConstantAdditiveIdentity); }