Question: In c program please defined as distance (z2-z1)(y2-yl)+(:2-z1) Create a function named prodVect that takes two vector structures and returns the scalar product of both

In c program please
 In c program please defined as distance (z2-z1)(y2-yl)+(:2-z1) Create a function
named prodVect that takes two vector structures and returns the scalar product

defined as distance (z2-z1)(y2-yl)+(:2-z1) Create a function named prodVect that takes two vector structures and returns the scalar product of both vectors defined as Create a function named projVect that takes two vector structures and returns the scalar projection of the first vector onto the second vector defined below If the norm of v2 is zero then return 0 projr2 . Create a function named angleVect that takes two vector structures and returns the angle in degrees between the two vectors defined below. For computing the cosine inverse use the function acos Use PI- 314159265 If the norm of any of the two vectors is zero then return 0 i (-1., 2) 180 i (m)- angle= cos angle Cos Tasks (Read Carefully) Create a program that reads two vectors from the user as follows (10.4, 7.4, 3.0) (1.4, 2.4, 1.3) Then have your program output the following (add 'In after every line) v1: (10.40, 7.40, 3.00) v2: (1.40, 2.40, 1.30) v2+ vl: (11.80, 9.80, 4.30) v2 - vl: (9.00, -5.00, -1.70) norm (vi): 13.11 nozm (v2):3.07 dist (vi,v2): 10.44 prod (vi,2): 36.22 proj(vi, v2): 11.81 proj (v2,v1): 2.76 angle (v2,vl): 25.77

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!