The 20-in. tube AB can slide along a horizontal rod. The ends A and B of the tube are connected by elastic cords to the fixed point C. For the position corresponding to x = 11 in., determine the angle formed by the two cords (a) using Eq. (3.32), (b) applying the law of cosines to triangle ABC.

ENGR 121 B Lecture Notes for 11/07/2016 Spencer Kociba ● Error thresholds ○ eps=2.2204e-16 ■ Maximum error threshold constant in MATLAB a−b ■ The relative erro[a] )must be less than eps to be considered not significantly different from each other ■ NOTE: 1+esp ≠ 1 even though ans=1.000 ● For loops are almost never necessary when performing a function for every element in a vector or matrix ● Vectorizing ○ Re-writing code using loops (traditional programming language) to vector and matrix operations in MATLAB ● Preallocating memory ○ Faster than dynamically growing the number of vector elements using a