Ejemplo n.º 1
0
        private int[] resultCoeff(Polynomial apoly, Polynomial bpoly, string option)
        {
            switch (option)
            {
            case "xor":
                return(apoly.AddOrSubtract(bpoly).Coefficients);

            case "multy":
                return(apoly.Multiply(bpoly).Coefficients);

            default:
                throw new ArgumentException("No such math option for polynomial");
            }
        }