x1 X2 X3 Atnangle has vertices (x1y1)(X2 y2) and X3 Уз) The area of the triangle...
Write a program that prompts the user to enter three points (x1, y1), (x2, y2), (x3, y3) of a triangle and displays its area. The formula for computing the distance of two points (x1, y1) and (x2, y2) is d = Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); or d = Math.pow((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1), 0.5); The formula for computing the...
iii. If the vertices of a triangle, in counterclockwise order are (x1.yı), (X2,Y2) and (x3 ,Y3), Show that the area of the triangle is A= }((x, y, – x, y;)+(x,y; – x, y,)+(x; y; – x, y,)). [5%) iv. Use Part iii to find the area of the triangle with vertices (0,0); (2,0) and (0,2), then, check the result geometrically. [5%)
matlab 3. Filename: area2d.m The area of a triangle whose three vertices are points (x1, yı), (X2, y2), and (x3, y3) can be found using the absolute value of the following equation: A = 3 [x: (– yz) – x2\1 – yz) + x3V1 – Yz)] Write a MATLAB function area2d that calculates the area of a triangle using the following syntax: A = area2d (x,y) where x and y are vectors such that x = [X1, X2, X3] and...
с раиси от к. Show that the function that takes ((X1, X2, X3), (y1, y2, y3)) E to xi yi + x3y3 is not an inner product on R. ((X1, X2, X3), (y1, y2, y3)) E R3 x R3 von SE
3) Let (x, y), (X2, y2), and (X3. Y3) be three points in R2 with X1 < x2 < X3. Suppose that y = ax + by + c is a parabola passing through the three points (x1, yı), (x2, y), and (x3, Y3). We have that a, b, and c must satisfy i = ax + bx + C V2 = ax + bx2 + c y3 = ax} + bx3 + c Let D = x X2 1....
Let C be a triangle in the x-y plane with vertices (x1,y1), (x2y2) and (x3,y3) arranged so that C is positively-oriented. Let C be a triangle in the xy-plane with vertices (x,y), (z2,p), and (z3,U3) arranged so that C is positively-oriented. a.) Sketch such a triangle and indicate its orientation. b.) Apply Green's Theorem to compute the area of the triangle as a (sum of) path integral(s) around the boundary. Get a formula for area in terms of the coordinates...
Consider the following equations: y1 = a1y2 +a2y3 +x1 +x2 +e1 (1) y2 = by1+2x3+x1+e2 (2) y3 =cy1+e3 (3) Here a1, a2, b, c are unknown parameters of interest, which are all posi- tive. x1, x2, x3 are exogenous variables (uncorrelated with y1, y2 or y3). e1, e2, e3 are error terms. (a) In equation (1), why y2,y3 are endogenous? (b) what is (are) the instrumental variable(s) for y2, y3 in equation (1)? (no need to explain why) (c) In...
(a) If C is the line segment connecting the point (X1,Y1) to the point (X2, y2), find the following. e x dyr dy - y dx xly2 - x2y1 x A= A= (b) If the vertices of a polygon, in counterclockwise order, are (X1,Y1). (X2, y2), ..., (X, Yn), find the area of the polygon. [0x271 – 1/2) + (x392 – x2Y3) + .. + ... + (xnxn-1 - xn-1n) + (*11n – Xnxx)] + x2+1) + (x2y + x372)...
(a) If C is the line segment connecting the point (X1,Y1) to the point (X2, y2), find the following. Jexdy-y x dy - y dx O A = (b) If the vertices of a polygon, in counterclockwise order, are (X1,Y1), (x2, y2), ..., (Xn, Yn), find the area of the polygon. O A = 3 [(x112 - – *287) + (x3X3 – x3y2) + ... + (*n – 1'n – XnYn – 1) + (xn/1 – xqYn] = {[(x112 +...
Set A contains three numbers x1, x2 and x3. Set B contains four numbers y1, y2, y3 and y4. These two sets have the following characteristics: Set Mean Standard deviation A 10 2 B 45 5 Set X consists of the following eight numbers: u1 =70, u2 =7x1, u3 =7x2, u4 =7x3, u5 =2y1, u6 =2y2, u7 =2y3, u8 =2y4. Find the mean and standard deviation of the numbers in set X.