GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - yinz87/assignment-1-yin-abdi: assignment-1-yin-abdi created by GitHub Classroom

BranchesTags
Open more actions menu

Latest commit

 

History

24 Commits
24 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
assignment1
assignment1
 
 
assignment1.cpp
assignment1.cpp
 
 
assignment1.hpp
assignment1.hpp
 
 
example.jpg
example.jpg
 
 
plot.PNG
plot.PNG
 
 
projectile.cpp
projectile.cpp
 
 
projectile.hpp
projectile.hpp
 
 

Repository files navigation

livecode-projectile


A simple implementation of an Euler integrator for projectile motion. This program was written (mostly) live, in lecture for SOFE-2850U in Fall 2017.

Next week, we will add drag and stopping conditions. The drag will make the output more interesting. Implementing stopping conditions in a generic way force us to introduce lambdas and templates.

Compilation

Compile with

clang++ -std=c++14 -o assignment1 assignment1.cpp

or

g++ -std=c++14 -o assignment1 assignment1.cpp

and run as

./assignment1

and watch your terminal fill with numbers.

Output

The output will be six columns of numbers with the following order:

time [s], x-position [m], y-position [m], z-positon [m] x-speed [m/s], y-speed [m/s], z-speed [m/s]

Plot the, you get the familiar parabolic trajectory, which will depend on your constants:

About

assignment-1-yin-abdi created by GitHub Classroom

Resources

Readme
GPL-3.0 license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.