Example #1
0
        public bool Solve()
        {
            double detA = Det.Calc33(_c1[0], _c2[0], _c3[0],
                                     _c1[1], _c2[1], _c3[1],
                                     _c1[2], _c2[2], _c3[2]);

            if (detA == 0.0)
            {
                return(false);
            }

            t1 = Det.Calc33(_l[0], _c2[0], _c3[0],
                            _l[1], _c2[1], _c3[1],
                            _l[2], _c2[2], _c3[2]) / detA;

            t2 = Det.Calc33(_c1[0], _l[0], _c3[0],
                            _c1[1], _l[1], _c3[1],
                            _c1[2], _l[2], _c3[2]) / detA;

            t3 = Det.Calc33(_c1[0], _c2[0], _l[0],
                            _c1[1], _c2[1], _l[1],
                            _c1[2], _c2[2], _l[2]) / detA;

            return(true);
        }
Example #2
0
        public bool Solve()
        {
            double detA = Det.Calc22(_a00, _a01, _a10, _a11);

            if (detA == 0.0)
            {
                return(false);
            }

            t1 = Det.Calc22(_l0, _a01,
                            _l1, _a11) / detA;
            t2 = Det.Calc22(_a00, _l0,
                            _a10, _l1) / detA;
            return(true);
        }