You are on page 1of 2
Worksheet 1: STARTING with MATLAB 1 Assuming the variablesa MATLAB statements, 12,0 = 234, spute the follow Saale 0.81,f = 19.83, write @ ett Sots Calculate the following by writing commands in command window: Si 4 ie OAR HELMS OG TT 220) een Define the variable r with value 6.8 and evaluat (@ Mi -E) — &) Zeos(osr 3) (@) Define the variables ead das: 13,0 2 and a = 2 Then ov the folowing expression (a-by(c+a) WEE + In(d—a + eal) iven by (9) sin4x = 4 sina cos x —Osin® xeosx ¢h)cos2x For each part, verity thatthe identity is comrect by calculating the values of LHS and RHS by substing x = Given fcos*(ax) dx f° c0s*(0.5x)dx Use MATLAB to calculate the definite integral ren by The distance d from a point (x, yg) to aline Ax+ By +e = Ois g = Matt #s120*21 Determine the distance of the point (2-3) from the line 3x+5y-6=0. Hint: Use the abs and sqrt functions} The formula for ch (a) Use MATLAB's function fog(x) 0 (b) Use MATLAB's function lo The magnitude M of an cartha sing the base ofa logarithm is foga = n by M urthquike, and Ey = 10% Joules is a constant from an earthquake that registers 7.1 $6.9, wh Determine how many times more ene fon the Richter scale than an earthquake that 10.The te equation t(p) =A ~—2— whee tn is the malura k an! Aan C are mata constants Fr tiene inthe temperature ange fom 280 to 410 K, the material constants are A=/6.0/97.B=3096 52, and C=-S3.67, Cake the Capor presoreoftokeneat 1S and 408 perature depe dence of vapor pressure pcan be estimated by the Antoine ith, p is ia. mom He, Tis a Kelvin, ‘The number of combina ons Car of taking r objects out of m objects is given by the formula Cy = AA basketball team has 12 players on the roster, Determine how inbuilt function factorial, svany dif font oF the 17 payers hy using the ‘The vottage difference Vap between points a and Din the wheatstone bridge circuit is Be ey given by Veo = VG Calculate the voltage difference when V=I2_volls, Ry = 1200hms,Ry 100 ohms, Ry = 220 ohms and Ry 120 ohms, v 13, According to special theory of relativity, a rod of length L moving at velocity » will ‘where eis the speed of light 300.X 108 m/s, Calculate how much a rod 2 meter long will contract when trelling at 5000 nus. 14, The temperature difference of vapor pressure p can be estimated hy the Anteing 2quation: nip) Band Care the m \where In isthe natural logarithm, p i in mmBlg, Tis in Kelvns, and A, natril constants. For toluene in the temperature range from 280 te 410 K, al constants are A=16.0137, B=3096,52, and C=-53,67. Cale 5 and 405 K. Xe the vapor pressure of toluene at 15, Use the belp window to finda display format that displays the output asa ratio of ber 3.1 and execute the followin srs, For example the Will be displayed as 25/8. Change the display to this forma (@) 58-4166 (61 311/13 ‘operations

You might also like