示例#1
0
        public void Start()
        {
            Camera = GameObject.FindGameObjectWithTag("MainCamera");
            Make();
            _a = new Fraction[Am.Row][];
            _b = new Fraction[Bm.Row][];
            for (var i = 0; i < Am.Row; i++)
            {
                _a[i] = A[i];
            }
            for (var i = 0; i < Bm.Row; i++)
            {
                _b[i] = B[i];
            }
            Fraction p = Determinant(_a);

            Debug.Log(p.ToString());
        }
示例#2
0
文件: complex.cs 项目: Moosan/Matrix
        public override string ToString()
        {
            string result = "";

            if (Re.Up != 0)
            {
                result += Re.ToString();
                if (Im.Up == 0)
                {
                    return(result);
                }
                result += "+" + Im + "i";
                return(result);
            }
            if (Im.Up != 0)
            {
                result += Im + "i";
                return(result);
            }
            return("0");
        }