Question

In: Physics

a 2d collision Perform a linear fit, of the form x = A*t + B, to...

a 2d collision

Perform a linear fit, of the form x = A*t + B, to each graph and determine the initial velocity v1 and the final velocities v′1x, v′1y, v′2x, and v′2y. How do I find the v′1y

if: time (sec)= 0.400, 0.460, 0.500, 0.530, 0.560, 0.600, 0.630, 0.670, 0.700, 0.730, 0.700,0.800, 0.830, 0.867, 0.900

position (m) in y dxn= 85, 100, 120, 140, 160, 180, 190, 210, 230, 240, 260, 270, 290, 300, 320

position (m) in x dxn= 800, 850, 920, 980, 1000, 1080, 1140, 1190, 1230, 1280, 1300, 1400, 1440, 1490, 1500

Solutions

Expert Solution

from scipy.optimize import curve_fit
import numpy as np
import matplotlib.pyplot as plt

t1 = [.400, .460, .500, .530, .560, .600, .630, .670, .700, .730]
t2 = [ .700, .800, .830, .867, .900]

x1 = [800, 850, 920, 980, 1000, 1080, 1140, 1190, 1230, 1280]
x2 = [ 1300, 1400, 1440, 1490, 1500]

y1 = [85, 100, 120, 140, 160, 180, 190, 210, 230, 240]
y2 = [260, 270, 290, 300, 320]

u1 = np.linspace(.400,.730,10)
u2 = np.linspace(0.7,0.9,5)


def linear(x, a0, a1):
return a0*x + a1


popt1, pcov1 = curve_fit(linear, t1, x1)
popt2, pcov1 = curve_fit(linear, t2, x2)
plt.plot(t1,x1, label = 'x vs t before collision', linewidth = 2)
plt.plot(t2,x2, label = 'x vs t after collision', linewidth = 2)
plt.plot(u1, linear(u1, *popt1), label = 'linear fit before collision')
plt.plot(u2, linear(u2, *popt2), label = 'linear fit after colision')
plt.legend()
plt.show()

popt1, pcov1 = curve_fit(linear, t1, y1)
popt2, pcov1 = curve_fit(linear, t2, y2)
plt.plot(t1,y1, label = 'y vs t before collision', linewidth = 2)
plt.plot(t2,y2, label = 'y vs t after collision', linewidth = 2)
plt.plot(u1, linear(u1, *popt1), label = 'linear fit before collision')
plt.plot(u2, linear(u2, *popt2), label = 'linear fit after colision')
plt.legend()
plt.show()

Take the slope between any two points in the x vs t and y vs t graph to get vx and vy respectively.

v′1y = (100-85)/(0.460-0.400) - 250 m/s

v′2y = (270-260)/(0.800-0.700) = 99.99 m/s


Related Solutions

T::R2->R2, T(x1,x2) =(x-2y,2y-x). a) verify that this function is linear transformation. b)find the standard matrix for...
T::R2->R2, T(x1,x2) =(x-2y,2y-x). a) verify that this function is linear transformation. b)find the standard matrix for this linear transformation. Determine the ker(T) and the range(T). D) is this linear combo one to one? how about onto? what else could we possibly call it?
Fit a multiple linear regression model of the form y=β0 + β1 x1 + β2 x2...
Fit a multiple linear regression model of the form y=β0 + β1 x1 + β2 x2 + β3 x3 + ε. Here, ε is the random error term that is assumed to be normally distributed with 0 mean and constant variance. State the estimated regression function. How are the estimates of the three regression coefficients interpreted here? Provide your output, and interpretations in a worksheet titled “Regression Output.” Obtain the residuals and prepare a box-plot of the residuals. What information...
Consider the linear transformation T : P1 → R^3 given by T(ax + b) = [a+b...
Consider the linear transformation T : P1 → R^3 given by T(ax + b) = [a+b a−b 2a] a) find the null space of T and a basis for it (b) Is T one-to-one? Explain (c) Determine if w = [−1 4 −6] is in the range of T (d) Find a basis for the range of T and its dimension (e) Is T onto? Explain
solve the SDE dX = − 1 /τ( (X − µ)dt) + (2D)-1/2 dB. X(t =...
solve the SDE dX = − 1 /τ( (X − µ)dt) + (2D)-1/2 dB. X(t = 0) = β
Perform t-test on eRPM for Strategy A and B. H0: A = B vs. H1: A...
Perform t-test on eRPM for Strategy A and B. H0: A = B vs. H1: A != B (Two-sided t-test) What is the p-value? Strategy Date eRPM A 1-Jun-14 3.33 A 2-Jun-14 2.94 A 3-Jun-14 3.03 A 4-Jun-14 2.99 A 5-Jun-14 3.08 A 6-Jun-14 3.14 A 7-Jun-14 3.32 A 8-Jun-14 3.27 A 9-Jun-14 3.15 A 10-Jun-14 3.24 A 11-Jun-14 3.2 A 12-Jun-14 3.21 A 13-Jun-14 3.25 A 14-Jun-14 3.48 A 15-Jun-14 3.47 A 16-Jun-14 3.25 A 17-Jun-14 3.32 A 18-Jun-14...
Perform t-test on eRPM for strategy A and B. H0: A = B vs. H1: A...
Perform t-test on eRPM for strategy A and B. H0: A = B vs. H1: A != B (Two-sided t-test) What is the p-value? Strategy Date eRPM A 15-Jun-14 3.47 A 16-Jun-14 3.25 A 17-Jun-14 3.32 A 18-Jun-14 3.46 A 19-Jun-14 3.58 A 20-Jun-14 3.48 A 21-Jun-14 3.48 A 22-Jun-14 3.46 A 23-Jun-14 3.34 A 24-Jun-14 3.33 A 25-Jun-14 3.37 A 26-Jun-14 3.53 A 27-Jun-14 3.67 A 28-Jun-14 3.83 A 29-Jun-14 3.78 A 30-Jun-14 3.48 B 15-Jun-14 3.34 B 16-Jun-14...
Fit a quadratic function of the form ?(?)=?0+?1?+?2?2 f ( t ) = c 0 +...
Fit a quadratic function of the form ?(?)=?0+?1?+?2?2 f ( t ) = c 0 + c 1 t + c 2 t 2 to the data points (0,−1) ( 0 , − 1 ) , (1,8) ( 1 , 8 ) , (2,−7) ( 2 , − 7 ) , (3,−6) ( 3 , − 6 ) , using least squares.
(8) Suppose T : R 4 → R 4 with T(x) = Ax is a linear...
(8) Suppose T : R 4 → R 4 with T(x) = Ax is a linear transformation such that • (0, 0, 1, 0) and (0, 0, 0, 1) lie in the kernel of T, and • all vectors of the form (x1, x2, 0, 0) are reflected about the line 2x1 − x2 = 0. (a) Compute all the eigenvalues of A and a basis of each eigenspace. (b) Is A invertible? Explain. (c) Is A diagonalizable? If yes,...
1. Let X and Y be non-linear spaces and T : X -->Y. Prove that if   ...
1. Let X and Y be non-linear spaces and T : X -->Y. Prove that if    T is One-to-one then T-1 exist on R(T) and T-1 : R(T) à X is also a linear map. 2. Let X, Y and Z be linear spaces over the scalar field F, and let T1 ϵ B (X, Y) and T2 ϵ B (Y, Z). let T1T2(x) = T2(T1x) ∀ x ϵ X. (i) Prove that T1T2 ϵ B (X,Y) is also a...
Consider the linear transformation T: R^4 to R^3 defined by T(x, y, z, w) = (x...
Consider the linear transformation T: R^4 to R^3 defined by T(x, y, z, w) = (x +2y +z, 2x +2y +3z +w, x +4y +2w) a) Find the dimension and basis for Im T (the image of T) b) Find the dimension and basis for Ker ( the Kernel of T) c) Does the vector v= (2,3,5) belong to Im T? Justify the answer. d) Does the vector v= (12,-3,-6,0) belong to Ker? Justify the answer.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT