1. Engineering
  2. Computer Science
  3. for this discussion first describe what each code snippet does...

Question: for this discussion first describe what each code snippet does...

Question details

For this discussion first, describe what each code snippet does and how it might be used in Statics. Describe in general terms what Statics calculation is being performed by each code snippet. What is input to the calculation and what results are given? Give definitions not numbers. Hint: all arrays are components of vectors [x, y, z]. Next, write a section of code as described below. Make your first posting by Thursday and two replies to other students by the end of the module week. Code 1 V1 C0, 1, 2 ] V2 3, -4, 5]; Z) , V1(x)*V2(y) -V1(y)*V2(x)]; Note: must be at the end of the line as it is the Matlab way to continue a statement on the next line.Code 2 V1 0, 1, 2 ]; V2 3, -4, 5 ; У 2; z=3; Code 3: Mag = sqrt( sum(V Lambda-V./Mag ·AZ )); Code 4 r1 0.3, -0.4, 0.5 1; r1XF = cross(r1,v); r2Xf cross(r2,v); isequal(r1Xf, r2Xf) What should be the result of this snippet?Your Code Write a code to compute all 6 permutations of the mixed triple product (Equation 3.37) of the three vectors: Then change the first vector to, P-2i+3j+5k and compare the results. To make this easier type the commands help dot and help cross into Matlab.For this discussion first, describe what each code snippet does and how it might be used in Statics. Describe in general terms what Statics calculation is being performed by each code snippet. What is input to the calculation and what results are given? Give definitions not numbers. Hint: all arrays are components of vectors [ x, y, z ].

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution