Question: Matlab code. Has to be a script. The natural frequency of the free vibration of a cantilever is determined by cos(x)cosh(x)+1=0. Write a script to
The natural frequency of the free vibration of a cantilever is determined by cos(x)cosh(x)+1=0. Write a script to find the first 4 positive roots according to the following procedure. Your program should evaluate the function f(x)=cos(x)cosh(x)+1 over a set of points and looks for sign changes. It starts at x=0 and uses an increment of 0.2 up to a value of x=11. If a change in sign is detected between x(i) and x(1+1), there is a root between these two x values and this root is then determined with any methods we discussed in class. We will want all the results having at least 8 accurate decimal places. Store all your four roots in a vector called ' y, that is y= [first root, second root, third root, fourth root]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
