ENGR 102 In-Class Activity/ HWS
Complete the following problems in a single script file and upload to eCampus.
1. Use element addressing to determine the sum of the 2nd, 4, and 7" terms of the following
vector
V = (0,5,6,-1, 6, 9, 6, 2, -3,5)
2. Create a new vector which is the result of squaring each element of vector T. Do not square
each element explicitly.
T = (0,8,5, 3,0,8,4)
3. Create a column vector which is a result of the term by term product of vectors P and M. For
example Prob3;=P,*M1.
P = [3,4,5,6, 0,7,-1) M =(4,-2, 1, 2, -1, 2, -11
4. For the function y = x +2e*-1, calculate the value of y for the following values of x using element-
by-element operations: -3, -2,-1,0, 1, 2, 3.
5. For the function y
2stnx.cosex
calculate the value of y for the following values of x using
element-by-element operations: 200, 300, 40, 50°, 60°, 70"
6. The radius of a sphere can be calculated from its surface area, s, by using the following
equation
VS/
The volume can be found by using the following equation:
4rur
Determine the volume of spheres with surface areas of 50, 100, 150, 200, 250, and 300 ft.
For problems 7-10 see handout.
Nam
achi
ENGR 102 In-Class Activity
Work out the following problems by hand in the space provided.
7. Evaluate the following expressions without using MATLAB.
b) y = 8/4> 6 X 3-42> -3
a) 12-4 < 5 X3
8- 3
1
27 27-3
8. Evaluate the following expressions without using MATLAB.
y= 1
a) (^5 + ~0) X 6 == 3 + 3 X~
1 X 6 == 3+3 X 1
b) y=-3 < (8-12)+ 2X(5>18/6-4)? ?
y=-3
Purchase answer to see full
attachment