Question: Modeling Vectors in R2 CSc 1350: Programming Project # 5 Implementing a 2-D Vector Clas:s Out: 11/6 Due: 11/17 by 11:50 PM Learning Objectives Implementing





Modeling Vectors in R2 CSc 1350: Programming Project # 5 Implementing a 2-D Vector Clas:s Out: 11/6 Due: 11/17 by 11:50 PM Learning Objectives Implementing a Class o Writing Constructors, Mutators and Accessors . Testing a Class Definition 1. A vector is defined as an element of a vector space. In the commonly used vector space " (Euclidean n-space), a vector is denoted by n coordinates and can be specified as (xi,x2, ..., xn). Vectors are usu- ally referred to by the number of coordinates they have. A 2-dimensional vector (xi,22) is may be referred to as a two-vector. More generally, an n-dimensional vector may be referred to as n-vector Binary operations such as addition, subtraction and multiplication by scalans are defined on vectors. Vector multiplication is not unique; different types of vector products, such as the dot product and cross product are defined as binary operations on vectors. Definition 2. The vector norm of a two-vector, denoted s equals to Vr* +y (r,y), denoted U Definition 3. The unit vector of a two-vector v ih =,ti ). The norm of the unit vector is 1. The unit vector for the zero vector is undefined Definition 4. Two vectors in R2, U1-(a1,y1) and 2 D,p) are equal if and only if corresponding coordinates are equal: that is, z1 = z2 and Adding Vectors in IR2 Duncan Fall 2017 Modeling Vectors in R2 CSc 1350: Programming Project # 5 Implementing a 2-D Vector Clas:s Out: 11/6 Due: 11/17 by 11:50 PM Learning Objectives Implementing a Class o Writing Constructors, Mutators and Accessors . Testing a Class Definition 1. A vector is defined as an element of a vector space. In the commonly used vector space " (Euclidean n-space), a vector is denoted by n coordinates and can be specified as (xi,x2, ..., xn). Vectors are usu- ally referred to by the number of coordinates they have. A 2-dimensional vector (xi,22) is may be referred to as a two-vector. More generally, an n-dimensional vector may be referred to as n-vector Binary operations such as addition, subtraction and multiplication by scalans are defined on vectors. Vector multiplication is not unique; different types of vector products, such as the dot product and cross product are defined as binary operations on vectors. Definition 2. The vector norm of a two-vector, denoted s equals to Vr* +y (r,y), denoted U Definition 3. The unit vector of a two-vector v ih =,ti ). The norm of the unit vector is 1. The unit vector for the zero vector is undefined Definition 4. Two vectors in R2, U1-(a1,y1) and 2 D,p) are equal if and only if corresponding coordinates are equal: that is, z1 = z2 and Adding Vectors in IR2 Duncan Fall 2017
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
