In this assignment, we ask you to write the C code to perform the dot product of two vectors.
we are waiting.
Desired Features:
1) A vector will be created in the size of the number of elements received from the user.
2) In order to perform the operation described in the first item, create a vector.
function will be written. This function will take a parameter named "number of elements".
A vector with the size of the received parameter value will be created and the vector created will be 0-9.
It will be filled and returned with random values between 0 and 9 inclusive.
3) The two vectors created are given as parameters to the function named pointCarpim.
should be given. A separate vector must be created for the result obtained. dot product
After performing the operation, the resulting vector must be returned.
4) Finally created vectors and the result of dot product of these vectors
the resulting vector must be printed to the screen in the main function (Vector
a function called VectorPrint to print its elements to the screen.
create).
5) Test the program you have written for at least two different element sizes.
The scalar product of two vectors:
C=A BABcose
The cosine of the angle between the two vectors: in the picture