In: Computer Science
The scalar triple product computes the magnitude M of the moment of a force vector F about a specified line. It is M = (r × F) . n, where r is the position vector from the line to the point of application of the force and n is a unit vector in the direction of the line.
Use MATLAB to compute the magnitude M for the case where F = [12, -5, 4] N, r = [$3, 5, 2] m, and n = [6, 5, -7].
Since the function approaches ∞ as x tends to 2 and 5. We can choose our x-limits just around 2 and 5. For instance
x ∈(0, 1.95) ∪ (2.05, 4.95) ∪ (5.05, 7)
The above intervals are not hard and fast and can be varied as per the convenience.
The MATLAB command to plot the functions is shown below:
The plot is shown below
Since the function approaches ∞ as x tends to 2 and 5. We can choose our x-limits just around 2 and 5. For instance
x ∈(0, 1.95) ∪ (2.05, 4.95) ∪ (5.05, 7)