ENGG1811 Virtual Lab 2: Matlab
Problem 2: Functions
An object of mass m (in kg) is suspended from the end of a rigidhorizontal beam of length b (in metres) that is attached to a wallby a pivot. The beam is supported by a cable of the same length asthe beam attached to the beam at a distance d (in metres) from thewall. The tension T (in Newtons) on this cable is given by theequation
where g is the acceleration due to gravity and you can assumeits value is 9.81.
Your task is to write a function that calculates the tensiongiven the mass
OR
OR