a)
>> P1=[3;-1;5]
P1 =
3
-1
5
>> P2=[2;1;-1]
P2 =
2
1
-1
>> norm(P1-P2,2)
ans =
6.4031
b)
>> P1=[1;-5;4]
P1 =
1
-5
4
>> P2=[4;-1;-1]
P2 =
4
-1
-1
>> norm(P1-P2,2)
ans =
7.0711
c)
c=[-4,-9]
c =
-4 -9
>> d=[-1,2]
d =
-1 2
>> d=dot(c,d)
d =
-14
d)
>> c=[2 1 -1]
c =
2 1 -1
>> d=[1 2 0]
d =
1 2 0
>> d=dot(c,d)
d =
4
e)
>> mu=5
mu =
5
>> syms x
>> T = taylor((1+x)^mu)
T =
x^5 + 5*x^4 + 10*x^3 + 10*x^2 + 5*x + 1
I have shown matlab command for .
f)
>> syms x
>> f = x^3;
>> T=taylor(f, x,'ExpansionPoint',3, 'Order', 8)
T =
27*x + 9*(x - 3)^2 + (x - 3)^3 - 54
Please answer all using MATLAB Find the distance between points P1=(3,-1,5)P1=(3,-1,5) and P2=(2.1.-1). Find the distance...
Please solve using MATLAB Example 1 Show that Example 2 Find a power series for the rational fraction 2- 1 = 1 - + 2 1+ - 23+ 4 0 for 3 <1. Example 5 Find the Maclaurin series for (1+x)". Example 4 Find the Taylor series of the cubic function x3 about x = 3. Vectors in 3-Dimensional Space Find the distance between points P1=(3,-1,5)P1=(3,-1,5) and P2=(2,1,-1). Find the distance between points P1=(1,-5,4)P1=(1,-5,4) and P2=(4,-1,-1)P2=(4,-1,-1). (Ctrl)
Find the distance d (P1,P2) between the given points P1 and P2 P1= (6,5) P2=(-2,6) d(P1,P2)=
Extra Credit: 1) Find the distance between P1 (-3,4) and P2 (2.-3). Give the exact value of the distance and also the approximate distance to the nearest hundredths 2) Find the int for the line segment connecting the two given points: P (-2,-3) and P2 (3,5) 3) Solve the equation: V2x x +1+1 equation: V2x
Find the distance P1P2 vector between P1 (1, 2, 3) and P2 (-1, -2, 3) in Cartesian coordinates, cylindrical coordinates, AND spherical coordinates.
Please show work 1.For the function f(x) = ln(x + 1) find the second Taylor polynomial P2(x) centered at c = 2. (9 points) 2. Use the Maclaurin series for arctan x to find a Maclaurin series for f(x). 3. Find the radius of convergence and the interval of convergence of the power series. We were unable to transcribe this imageWe were unable to transcribe this image
Q1. Consider these four points: P [,,5| , P2 = 2], P3 = [H]. Plot these three points. (a) Find the Manhattan distance between Pi and P2 (b) Find the Manhattan distance between P1 and P3. (e) Find the Manhattan distance between P2 and P3. Q2. Consider the same points in Q1 and find the Euclidean distances between the points specified in parts (a), (b), and (e). In other words, you will be doing the above question again but now...
Using MATLAB PLease For scaffolding system shown, assume P1-50 lbf and P2-20 lbf. Perform force and momentum equilibrium balances for each bar to find 4 equations. Then show how to set them up as one system of linear equations ( Ax-b)and solve in MATLAB to determine tension forces T.Ty.TC and To. Hint: write ΣFy-Oand ΣΜ-Ofor each bar to find the equations. Bar 1 For scaffolding system shown, assume P1-50 lbf and P2-20 lbf. Perform force and momentum equilibrium balances for...
5,9,13,17 1-X 1. What is the difference between a Taylor series and Maclaurin series? 2. T/F: In general, pn() approximates f(x) better and better as n gets larger. 3. For some function f(x), the Maclaurin polynomial of degree 4 is pa(x) = 6 + 3x - 4x + 5x – 7x*. What is p2(x)? 4. For some function f(x), the Maclaurin polynomial of degree 4 is p(x) = 6 + 3x - 4x + 5x – 7x*. What is f"O)?...
1. (a) (3 points) What is the distance between any two consecutive numbers in the interval from 12510 to 62510 when using a precision k = 4, base 5 floating-point number system? The answer should be in decimal. (b) 3 points The evaluation of f(0) = 1 - cos x in floating-point arithmetic suffers from subtractive cancellation when x is close to 2. Determine an alternate way of evaluating f(x) that does not suffer from subtractive cancellation for those same...
The parametric equations where 0 tl describe the line segment that joins the points P1(x1, y and P2(x2, y2) Use a graphing device to draw the triangle with vertices A(1, 1), B(3, 4), C(1,7). Find the parametrization, including endpoints, and sketch to check. (Enter your answers as a comma- separated list of equations. Let x and y be in terms of t.) A to B B to C A to C The parametric equations where 0 tl describe the line...