using System.Collections.Generic;
using System.Threading.Tasks;
static void Main(string[] args)
List<double> a = new List<double>();
double[] bTemp = { 2, 4, 6 };
List<double> b = new List<double>(bTemp);
Vector Va = new Vector(a);
Vector Vb = new Vector(b);
Console.WriteLine("The dimension of the Vector Va is: " + Va.dimension);
Console.WriteLine("Vector Va is: " + Va.ToString());
Console.WriteLine("The dimension of the Vector Vb is:" + Vb.dimension);
Console.WriteLine("Vector Vb is: " + Vb.ToString());
Console.WriteLine("Va+Vb=" + Vc.ToString());
Vector Vd = Vb.subtract(Va);
Console.WriteLine("Vb-Va=" + Vd.ToString());
Vector Ve = Vb.scalarMultiplication(3.00);
Console.WriteLine("3xVb=" + Ve.ToString());
Console.WriteLine("Va.Vb=" + Va.dotProduct(Vb));
double[] cTemp = { 3, 3 };
List<double> c = new List<double>(cTemp);
Vector Vf = new Vector(c);
Console.WriteLine("The dimension of the Vector Vf is:" + Vf.dimension);
Console.WriteLine("Vector Vf is: " + Vf.ToString());
Console.WriteLine("The dimensions of the two vectors do not match");
public Vector(List<double> a)
string x = "(" + X + "," + Y + "," + Z + ")";
public Vector add(Vector v)
Vector result = new Vector(0.0.0);
public Vector substract(Vector v)
Vector result = new Vector(0.0.0);