Tag «programming»

Time Steps and Binary Representation in Computer Simulations

TL;DR Using a time step whose decimal representation isn’t exactly representable in binary may lead to confusion over how much total time has elapsed in a computer simulation. It may be worth discussing in class, or worthy of an investigative or inquiry activity. Sometimes, a problem comes up repeatedly over the years and every time …

So you want to be a GlowScript developer? Here’s how!

TL;DR Developing for GlowScript requires setting up a rather extensive, but straightforwardly installed, development environment. Actual coding is done in JavaScript.  GlowScript is an online programming environment inteneded to be used to teach computation in introductory physics, although it has other applications and purposes. Although GlowScript users write code in Python (Specifically VPython, which is …

Visualizing Eigenvectors with GlowScript

I owe this post entirely to my mathematics colleague Ethan Smith and his recent work on visualizing eigenvectors in a plane. This work is based in turn on the paper by Schoenfeld. I’ve taken the visualization to 3D with the help of GlowScript and Trinket. I was instantly interested in this project becuase I’m looking …

Matter & Interactions II, Week 2

This week was yet another partial week. Between weather and holidays, we’ve not yet had a full week of classes. Such is life I guess. This week, we looked at the electric field of a static particle and the electric field of a fixed dipole on the dipole’s axis and on the perpendicular bisector of the …

Mastodon