using System; using System.Collections.Generic; using System.Linq; using System.Text; using V = Science.Mathematics.VectorCalculus; namespace VectorCalculus5Ed.Chapter1.Section5 { public class Example11 { public Example11() { } private string result; public string Result { get{return result;} } public void Compute() { V.Matrix A = new V.Matrix(2, 1); A[0, 0] = 3.0; A[1, 0] = 5.0; V.Matrix B = new V.Matrix(1, 2); B[0, 0] = 1.0; B[0, 1] = 1.0; V.Matrix C = new V.Matrix(2, 1); C[0, 0] = 1.0; C[1, 0] = 2.0; V.Matrix D = A * (B * C); result += D.ToString(); V.Matrix E = (A * B) * C; result += E.ToString(); } } } /* 9 15 9 15 */