ONLY THE ONES THAT ARE CIRCLED
Answer ASAP please
Problems Answers to problems marked with an asterisk are given at the end of the text. Section 1.1 1. Make sure you know how to start and quit a MATLAB session. Use MATLAB to make the following calculations, using the values x=10, y=3. Check the results by using a calculator. a. u=x+y b. v=xy c. w=x/y d. z=sinx e. r=8siny f. s=5sin2y 2.* Suppose that x=2 and y=5. Use MATLAB to compute the following. a. xyyx3 b. 2y3x c. 23xy d. x51x5 3. Suppose that x=3 and y=4. Use MATLAB to compute the following, and check the results with a calculator. a. (1x51)1 b. 3x2 c. 4x83y d. 3x64(y5) 4. Evaluate the following expressions in MATLAB for the given value of x. Check your answers by hand. a. y=6x3+x4,x=3 b. y=4x3,x=7 c. y=25(4x)2,x=9 d. y=25sinx,x=4 (e.) y=7(x1/3)+4x0.58,x=30 5. Assuming that the variables a,b,c,d, and f are scalars, write MATLAB statements to compute and display the following expressions. Test your statements for the values a=1.12,b=2.34,c=0.72,d=0.81, and f=19.83. x=1+ba+f2cr=a1+b1+c1+d11s=dcbay=abc12f2 22. Use MATLAB to calculate a. e(2.1)3+3.47log(14)+4287 b. (3.4)7log(14)+4287 c. cos2(64.12) d. cos(64.12)2 Check your answers with a calculator. 23. Use MATLAB to calculate a. 6tan1(12.5)+4 b. 5tan[3sin1(13/5)] c. 5ln(7) d. 5log(7) Check your answers with a calculator. 24. The Richter scale is a measure of the intensity of an earthquake. The energy E (in joules) released by the quake is related to the magnitude M on the Richter scale as follows. E=104.4101.5M How much more energy is released by a magnitude 7.6 quake than a 5.6 quake? 25. Use MATLAB to find the roots of 13x3+182x2184x+2503=0. 26. Use MATLAB to find the roots of the polynomial 70x3+24x210x+20. 27. Use MATLAB to plot the function T=6lnt7e0.2 over the interval 1t3. Put a title on the plot and properly label the axes. The variable T represents temperature in degrees Celsius; the variable t represents time in minutes. 28. Use MATLAB to plot the functions u=2log10(60x+1) and v=3cos(6x) over the interval 0x2. Properly label the plot and each curve. The variables u and v represent speed in miles per hour; the variable x represents distance in miles. A fence around a field is shaped as shown in Figure P33. It consists of a rectangle of length L and width W and a right triangle that is symmetric about the central horizontal axis of the rectangle. Suppose the width W is known (in meters) and the enclosed area A is known (in square meters). Write a MATLAB script file in terms of the given variables W and A to determine the length L required so that the enclosed area is A. Also determine the total length of fence required. Test your script for the values W= 6m and A=80m2. Figure P33 35. Write a script file to compute the three roots of the cubic equation x3+ax2+bx+c=0 Use the input function to let the user enter values for a,b, and c. Section 1.5 36. Use the MATLAB Help facilities to find information about the following topics and symbols: plot, label, cos, cosine, :, and *. 37. Use the MATLAB Help facilities to determine what happens if you use the sqrt function with a negative argument. 38. Use the MATLAB Help facilities to determine what happens if you use the exp function with an imaginary argument. Section 1.6 39. a. With what initial speed must you throw a ball vertically for it to reach a height of 20ft ? The ball weighs 1lb. How does your answer change if the ball weighs 2lb ? b. Suppose you want to throw a steel bar vertically to a height of 20ft. The bar weighs 2lb. How much initial speed must the bar have to reach this height? Discuss how the length of the bar affects your