diff --git a/EC_Plane.m b/EC_Plane.m index ce884cd..fa7f75e 100644 --- a/EC_Plane.m +++ b/EC_Plane.m @@ -20,4 +20,5 @@ distance=x(end); plot(x,y); title('Paper Airplane Flight Path') xlabel('Distance (x)') -ylabel('Height (x)') \ No newline at end of file +ylabel('Height (x)') +axis([0 50 0 3]); \ No newline at end of file diff --git a/FligthPath.png b/FligthPath.png new file mode 100644 index 0000000..110ac5d Binary files /dev/null and b/FligthPath.png differ diff --git a/README.md b/README.md index 8710877..ff1101c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,11 @@ -# Paper_Airplane +# Paper Airplane Extra Credit Paper airplane extra credit + +The function EC_plane takes as inputs the initial launch angle, theta0, initial height, y0, and an initial velocity, v0, and outputs the distance a paper airplane will travel with those initial conditions. EC_Plane_optimum optimizes the initial angle and velocity at a given height of 2 m with L/D=5.2 and a terminal velocity of 5.5 m/s. + +The optimized initial angle is 0 rad. +The optimized initial velocity is 10 m/s (if 10 m/s is the maximum initial velocity) +The maximum distance traveled by the paper airplane is 36 m. + +#Paper Airplane Maximum Distance Flight Path +![Optimal Plot](FlightPath.png)