Exemple #1
0
        public static Polinom operator *(Polinom a, Polinom b)
        {
            var res = new Polinom();

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

            return((Power).Range().All(i => this[i] - other[i] < DoubleExtensions.Epsilon));
        }
Exemple #3
0
 public PolinomRoot(Polinom polinom)
 {
     Polinom = polinom;
 }