Plot 2D Trajectory: Solve Initial Velocity & Coordinates

  • Context: Undergrad 
  • Thread starter Thread starter rd42
  • Start date Start date
  • Tags Tags
    2d Plot Trajectory
Click For Summary
SUMMARY

The discussion focuses on plotting a 2D trajectory for an object with initial velocities of 50 m/s in the x-direction and 100 m/s in the y-direction. The user, rd42, seeks to generate coordinates starting from the origin (0,0) rather than from (0,95.1). The correct formula for the y-coordinate is clarified as y = 100*t - 4.9*t², allowing for the calculation of trajectory points by varying time (t). By substituting t = 0, the initial point (0,0) is established, enabling the user to plot the entire trajectory accurately.

PREREQUISITES
  • Understanding of basic physics concepts related to projectile motion
  • Familiarity with kinematic equations, specifically y = v*t - 0.5*g*t²
  • Basic programming skills to implement trajectory calculations
  • Knowledge of plotting libraries or tools for visualizing 2D graphs
NEXT STEPS
  • Implement the kinematic equation y = 100*t - 4.9*t² in a programming language of choice
  • Explore plotting libraries such as Matplotlib in Python for visualizing trajectories
  • Research the effects of varying initial velocities on projectile motion
  • Learn about the integration of time steps in simulations to create smooth trajectories
USEFUL FOR

This discussion is beneficial for physics students, software developers working on simulation projects, and anyone interested in understanding and visualizing projectile motion in a 2D space.

rd42
Messages
6
Reaction score
0
I'm trying to plot out the trajectory of an object in a program that is looping through the function and spitting out the x and y coordinates, but I'm having trouble. I want to see a parabola starting at 0,0 going up and ending again at x,0.

Basic question:

(units aren't critical here f/s m/s anything as long as they're all the same)
initial velocity in x = 50
initial velocity in y = 100

x coordinate:
x = v * t
x = 50 * 1
x1 = 50

y coordinate:
y = v + .5gt^2
y = 100 + -4.9
y1 = 95.1

I'm missing something here. How do I get the points along the path of the trajectory starting at 0,0 instead of starting at 0, 95.1 as the first coordinate?

Thanks,
rd42
 
Last edited:
Physics news on Phys.org
rd42 said:
y coordinate:
y = v + .5gt^2
y = 100 + -4.9
y1 = 95.1

I'm missing something here. How do I get the points along the path of the trajectory starting at 0,0 instead of starting at 0, 95.1 as the first coordinate?

Thanks,
rd42

You mean y = 100*t -4.9*t2

You get point y1 when you set t =1 in the above equation. You get the earlier point y0 when you set t = 0 in the above equation.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 36 ·
2
Replies
36
Views
23K
  • · Replies 1 ·
Replies
1
Views
11K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
5
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K