Computer science student needing help in solving an exercise

In summary, the conversation is discussing how to calculate the velocity at a specific time using data from a table. Since the angles alpha and beta are only given at specific times, an approximation technique must be used. One approach is to use the average values of d(alpha)/dt and d(beta)/dt to calculate the approximate velocity at the desired time. Another approach is to calculate the velocity at two points and then find the average velocity between them. Both methods use the fact that velocity is the rate of displacement and no prior knowledge of physics is required.
  • #1
erkant
20
0
I even don't know if this is the appropriate place to post this questions, while as long as I know this place is considered for research topics and more advanced topics in physics. The point is that I need to write a MATLAB code for specific question, but first of all I need to solve it, and show the step by step solution of it, and then code it. Because I am not that good in physics, I though maybe someone where can give me a step by step solution, so I can code it later.

Here is the question:

DNl4wVJ.jpg
 

Attachments

  • DNl4wVJ HW.jpg
    DNl4wVJ HW.jpg
    26.3 KB · Views: 427
Last edited by a moderator:
Physics news on Phys.org
  • #2
Well, if you want to calculate the EXACT velocity, you would need to know the angles alpha and beta as a continuous function of time, in other words, you would need to know their values at ALL times. Since this is not provided to you, but rather only their values at specific instants of time, you would only be able to arrive at an APPROXIMATION. The broad way of doing this would be:
x component of velocity, vx = dx/dt
y component of velocity, vy = dy/dt
magnitude of velocity, v = sqrt(vx^2 + vy^2)
angle gamma = tan -1 (vy/vx)
Remember from your table that you don't know d(alpha)/dt and d(beta)/dt so you would have to use a suitable approximation technique to arrive at their approximate values at time t = 10, from the data provided in the table. One way to do this would be to replace d(alpha)/dt by (delta)(alpha)/(delta t), in other words use average values instead of instantaneous values.
 
  • #3
Well, as I said I need to program it, therefore I need the full path to the solution. I don't know that much physics. In programing instead of degrees, radians are used, so I wrote a program that converted those degrees to radians and calculated x and y.

I got the following results: x=1531.04, y=2170.38
I need only to calculate the speed v and climb angle gamma at t=10. So how, should I continue?
 
Last edited:
  • #4
Just differentiate the expressions for x and y w.r.t. time and then plug in the values of d alpha/dt and d beta/ dt. C'mon dude, do I have to spell out every step?The only physics you need to know really is that velocity is the rate of displacement. The rest is just math. And if I am not mistaken a calculus based physics course is a prerequisite even for computer science students in most universities. And during my ex-TA days I've even observed that some of them even fare better than physics students, so please don't give me that excuse. Cheers.
 
  • #5
I understood from your earlier post what I should do (or at least I hope so). For example, vx = dx/dt, how can I differentiate with respect to t, when there is no t in the function. That's my problem, and question. Should I use something like implicit differentiation?
 
Last edited:
  • #6
erkant said:
I understood from your earlier post what I should do (or at least I hope so). For example, vx = dx/dt, how can I differentiate with respect to t, when there is no t in the function. That's my problem, and question. Should I use something like implicit differentiation?

The best you can do here is to use the angles given for each time to compute an (x,y) coordinate

and then to use the points computes to get vx and vy

vx = x(10) - x(9)
vy = y(10) - y(9)

and similarly for the other velocity point.

That would give you two velocity points the one between t=9 and t=10 and the one between t=10 and t=11.

You can then find the average velocity of the plane.
 
  • #7
And what if I calculate the average? Is there any way that I can calculate the velocity at t=10?

If I go like you say:

vx = x(10) - x(9) = 1450.50 - 1401.92 = 48.58
vy = x(10) - x(9) = 2000.84 - 1987.35 = 13.49

v = sqrt(vx^2 + vy^2) = sqrt(48.58^2 + 13.48^2) = sqrt(2541.72) = 50.41

vx = x(11) - x(10) = 1450.50 - 1498.64 = -48.14
vy = x(11) - x(10) = 2000.84 - 2013.51 = -12.67

v = sqrt(vx^2 + vy^2) = sqrt(-48.14^2 + -12.67^2) = sqrt(2477.98) = 49.77

avgv = 50.41 + 49.77 / 2 = 50.09

do you mean that this is the velocity at time t=10?
 
Last edited:
  • #8
when you average the two velocities the result is the avg velocity at t=10
 
  • #9
vx = x(10) - x(9) = 1450.50 - 1401.92 = 48.58
vy = x(10) - x(9) = 2000.84 - 1987.35 = 13.49

v = sqrt(vx^2 + vy^2) = sqrt(48.58^2 + 13.48^2) = sqrt(2541.72) = 50.41

vx = x(11) - x(10) = 1450.50 - 1498.64 = -48.14
vy = x(11) - x(10) = 2000.84 - 2013.51 = -12.67

v = sqrt(vx^2 + vy^2) = sqrt(-48.14^2 + -12.67^2) = sqrt(2477.98) = 49.77

avgv = 50.41 + 49.77 / 2 = 50.09

do you mean that this is the velocity at time t=10? please note that degrees are converted to radians and x and y are calculated like this for the sake of my exercise.
 
  • #10
erkant said:
vx = x(10) - x(9) = 1450.50 - 1401.92 = 48.58
vy = x(10) - x(9) = 2000.84 - 1987.35 = 13.49

v = sqrt(vx^2 + vy^2) = sqrt(48.58^2 + 13.48^2) = sqrt(2541.72) = 50.41

vx = x(11) - x(10) = 1450.50 - 1498.64 = -48.14
vy = x(11) - x(10) = 2000.84 - 2013.51 = -12.67

v = sqrt(vx^2 + vy^2) = sqrt(-48.14^2 + -12.67^2) = sqrt(2477.98) = 49.77

avgv = 50.41 + 49.77 / 2 = 50.09

do you mean that this is the velocity at time t=10? please note that degrees are converted to radians and x and y are calculated like this for the sake of my exercise.

Yes, that looks right (I didn't verify your calculations but the concept looks right).
 
  • #11
Time is not explicitly present in the equation, but you know that alpha and beta are functions of time. Hence, you can get dx/dt as a function of alpha, beta, d (apha)/dt and d(beta)/dt. Then try to plug in the approximate values of d (apha)/dt and d(beta)/dt to get the approximate value of dx/dt. What jedishrfu is suggesting should work too.
 
  • #12
So assuming my calculations and concept is right. How can I calculate the angle.

If the equation for angle is: gamma = tan -1 (vy/vx), which vy/vx should I use? Or should I also use vy and vx for all times like above and do the average?

@physwizard isn't what you suggest, what I already do? I mean just plug the values of alpha and beta at specific time to expressions of x and y?
 
  • #13
I think you can use the v average and tan(gamma) = vy/vx

you could try using both velocity vectors but I think it will work out the same.
 
  • #14
I get around 88 degrees of angle.

gamma = tan -1 (vy/vx) = tan -1 (50.09) = 88 degrees.

According to picture it seems much more small. Is there any problem or I am just being fastidious? Can someone just do the calculations and verify me please?
 
Last edited:
  • #15
No, I was suggesting something different but I feel what jedishrfu is suggesting would work out to be simpler. If your previous calculations are correct, vy/vx is around 0.25, so gamma is arctan of that which should be around 14 degrees.
 
Last edited:
  • #16
erkant said:
I get around 88 degrees of angle.

gamma = tan -1 (vy/vx) = tan -1 (50.09) = 88 degrees.

According to picture it seems much more small. Is there any problem or I am just being fastidious? Can someone just do the calculations and verify me please?

The 50.9 value is the length of the velocity vector you need to use trig the compute the angle.

Physwizard did it right:

vy / vx = arctqn(gamma)

You have to average the vx and vy values individually and use those values in computing the arctan of gamma.

And 14 degrees seems right not many planes shoot upward at 88 degrees.
 
  • #17
Okay got it, thanks!
 

1. What is computer science?

Computer science is the study of computers and computational systems, including their principles, their hardware and software designs, their applications, and their impact on society.

2. What are some common challenges faced by computer science students?

Some common challenges faced by computer science students include understanding complex algorithms, debugging code, and keeping up with rapidly evolving technology.

3. How can I improve my problem-solving skills in computer science?

To improve problem-solving skills in computer science, it is important to practice regularly, break down problems into smaller, more manageable parts, and seek help from peers or professors when needed.

4. What resources are available to help me solve exercises as a computer science student?

As a computer science student, you can utilize resources such as online tutorials, coding communities, textbooks, and your professors' office hours to help you solve exercises and deepen your understanding of concepts.

5. How can I stay motivated while solving exercises as a computer science student?

To stay motivated while solving exercises as a computer science student, it can be helpful to set achievable goals, take breaks when needed, and remind yourself of the long-term benefits of mastering computer science skills, such as job opportunities and the ability to create innovative solutions.

Similar threads

  • STEM Academic Advising
Replies
10
Views
1K
  • STEM Academic Advising
Replies
6
Views
1K
  • Introductory Physics Homework Help
Replies
5
Views
1K
  • STEM Academic Advising
Replies
6
Views
1K
  • Programming and Computer Science
Replies
4
Views
1K
  • Introductory Physics Homework Help
Replies
2
Views
516
  • STEM Career Guidance
Replies
3
Views
2K
Replies
2
Views
790
Replies
18
Views
3K
  • Introductory Physics Homework Help
Replies
2
Views
409
Back
Top