Esempio n. 1
0
        public static RationalPolinom operator *(RationalPolinom a, RationalPolinom b)
        {
            var res = new RationalPolinom();

            (a.Count, b.Count).ForEachRange((i, j) => { res[i + j] += a[i] * b[j]; });
            return(res);
        }
Esempio n. 2
0
        public bool Equals(RationalPolinom other)
        {
            if (Count != other.Count)
            {
                return(false);
            }

            return((Power).Range().All(i => this[i] == other[i]));
        }