Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Aim Given the initial speed ( m / sec ) and the launch angle ( in degrees ) of a point particle projectile calculate the

Aim
Given the initial speed (m/sec) and the launch angle (in degrees) of a point particle projectile calculate the trajectory (x and z values, in meters) as a function of time in the presence of air friction.
Background
This question is a generalization of project S-Friction1D. Almost all instructions are valid here as well.
The equation in this case involves vectors:
ma(t)=mgz^12\rho ACdv2v^
where \rho is air density, A is the cross section area of the object, Cd is a geometric constant.
The drag force (the second term) is always in opposite direction to the velocity.
List of Tasks
Your code should follow the same guidelines as S-Friction1D but the angle (in degrees) and the initial velocity (in m/s) have to be inputted.
Your code should produce S-fric2D.dat file with two columns, x and z values in meters.
Hints
Remember that the math.sin() and math.cos() functions work only with angles in radians.
Check the example below and note the asymmetric trajectory due to the air drag.
Allowed Libraries
math
random
mathplotlib.pyplot or any other equivalent plotting library

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions