Programming Labs for Physics 1251!!!

These labs were designed by Prof. Chris Orban for Physics 1251 at OSU Marion.

The nice part about these programming labs is that these tutorials will work with any web browser. This is accomplished using a programming framework called processing.js which is very similar to C/C++.

Step 0. If you are *not* using a computer in Morrill 385 or Library 227, then click here install the processing.js environment on your computer

Follow the link above and choose windows 64-bit if you are using windows (and make sure to click "Extract" if asked), or Mac OSX if you are using a Mac.

Introduction (part 1): Programming framework

Introduction (part 2): Discussion of the units used in the programs

Lab 1. Particle Accelerator

Lab 2. Particle Accelerator (with potential)

Lab 3. Repulsion between two point charges

Demo: Electron motion in a conductor (with resistance)

Lab 4. RC circuits

Lab 5. Magnetic force (a.k.a. Mass Spectrometer)

(Just for fun) RL circuit , code: RLcircuit.pde, functions.pde

Lab 6. Wave Interference!