public static WWDecimalComplex Add(WWDecimalComplex a, WWDecimalComplex b) { var r = new WWDecimalComplex(a); r.Add(b); return(r); }
public static WWDecimalComplex[] Add(WWDecimalComplex[] a, WWDecimalComplex[] b) { if (a.Length != b.Length) { throw new ArgumentException("input array length mismatch"); } var c = new WWDecimalComplex[a.Length]; for (int i = 0; i < a.Length; ++i) { c[i] = WWDecimalComplex.Add(a[i], b[i]); } return(c); }
public static WWDecimalComplex Add(WWDecimalComplex a, WWDecimalComplex b) { var r = new WWDecimalComplex(a); r.Add(b); return r; }