Exemplo n.º 1
0
        /// <summary>
        /// 解一元三次方式,盛金公式法
        /// </summary>
        /// <param name="_a">ax³</param>
        /// <param name="_b">bx²</param>
        /// <param name="_c">cx</param>
        /// <param name="_d"></param>
        /// <returns></returns>
        public static Complex[] ThreeEquationShengjin(float _a, float _b = 0, float _c = 0, float _d = 0)
        {
            Shengjin _Shengjin = new Shengjin(_a, _b, _c, _d);

            return(_Shengjin.calc());
        }
Exemplo n.º 2
0
        /// <summary>
        /// 解一元三次方式,盛金公式法
        /// </summary>
        /// <param name="_a">ax³</param>
        /// <param name="_b">bx²</param>
        /// <param name="_c">cx</param>
        /// <param name="_d"></param>
        /// <returns></returns>
        public static Complex[] ThreeEquationShengjin(double _a, double _b = 0, double _c = 0, double _d = 0)
        {
            Shengjin _Shengjin = new Shengjin(_a, _b, _c, _d);

            return(_Shengjin.calc());
        }