subject

Program 2: In the earlier team project, your team put together a program that interpolated between two position values based on the time values when each positon was observed. This was a one dimensional (10) interpolation, since you were interpolating only a single value, the distance on the track. You are now going to extend that program to one that will linearly interpolate between two points in 3D.
Let's say we are tracking the change of a particle's position with time. So, at time t1 position is (x1, y1, z1) and at time t2 position is (x2, y2, 22). The question is what is the position (x, y, z) at some time to between t1 and t2?
Refer again to the Linear Interpolation material associated with Lab Assignment2. That material describes the development of equation representing linear interpolation of a dependent variable y versus an independent variable x. For the current problem, what varies linearly with what? What are the dependent variable(s)? What are the independent variable(s)?
Let's assume that each of the position variables (x, y, z) varies linearly with time (t). Therefore, time (t) is the independent variable in each case. This means we can perform linear interpolation three separate times to get what we need. This can be done in three steps: 1) linearly interpolate between (t1, x1) and (t2, x2) for to with XO as the result; 2) repeat for (t1, y1) and (t2, y2) for to with yo as the result; 3) repeat for (t1, z1) and (t2, z2) for to with z0 as the result. The result will be (x, y, z0) associated with time to.
Write a program that will take two observed 3D positions at two points in time, and then will calculate the 3D position at a third point in time. Let's consider only times between the two observed times. You should output the x, y, and z values for that position on separate lines. Begin by identifying the variables you will use, the names for those variables, and the computations that should occur for those variables. Then, write a program that will output the 3D position of the interpolated point on 3 separate lines.
For this initial program, you can use the following data values:
• At time 13, observed position was (1,3,7) meters
• At time 84, observed position was (23, -5, 10) meters
• You want to find the position at time 50 seconds
As for Program 1 above, please document your code using comments and print data labels and units to the screen to identify your output. Sample output:
time of interest = 50 seconds
x0 = 12.464788732394366 m
y0 = -1.169014084507042 m
z0 = 8.56338028169014 m

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:30
I'll mark brainliest if answered right! with which feature or menu option of a word processing program can you make an image like this? you can get this image using the option of a word processing program.
Answers: 1
question
Computers and Technology, 22.06.2019 23:00
Suppose s, t, and w are strings that have already been created inside main. write a statement or statements, to be added to main, that will determine if the lengths of the three strings are in order by length, smallest to largest. that is, your code should determine if s is strictly shorter than t, and if t is strictly shorter than w. if these conditions hold your code should print (the boolean value) true. if not, your code should print false. (strictly means: no ties) example: if s, t, and w are "cat", "hats", and "skies" your code should print true - their lengths are 3-4-5; but if s, t, and w are "cats" "shirt", and "trust", then print false - their lengths are 4-5-5 enter your code in the box below
Answers: 2
question
Computers and Technology, 23.06.2019 10:50
The volume v and paper surface area a of a conical paper cup are given by where r is the radius of the base of the cone and h is the height of the cone. a. by eliminating h, obtain the expression for a as a function of r and v. b. create a user-de ned function that accepts r as the only argument and computes a for a given value of v. declare v to be global within the function. c. for v ! 10 in.3 , use the function with the fminbnd function to compute the value of r that minimizes the area a. what is the corresponding value of the height h? investigate the sensitivity of the solution by plotting v versus r. how much can r vary about its optimal value before the area increases 10 percent above its minimum value?
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
The camera still is bad even with the new iphone xr and especially in low light it is even worst because you can see the pixels more if its in low light. if all you apple customers want apple to fix this then lets fill there feedback with complaints about the
Answers: 1
You know the right answer?
Program 2: In the earlier team project, your team put together a program that interpolated between...
Questions
question
English, 19.11.2020 03:10
question
Chemistry, 19.11.2020 03:10
question
Mathematics, 19.11.2020 03:10
question
English, 19.11.2020 03:10
question
Mathematics, 19.11.2020 03:10
Questions on the website: 13722362