Programming

UPC 2022 - Deflecting an Asteroid

University Physics Competition (UPC) is an annual event that undergraduates can partake in to solve a physics problem and writing a formal paper within 48 hours. We were a proud team of three, receiving that sweet silver medal. Since COVID lockdowns has relaxed, there are no doodles here :(. The paper This browser does not support PDFs. Download the PDF to view it: Download PDF Retrospect I believed this was the UPC that perfectly occured after I finished my Mechanics Course regarding orbits, etc. Because of that I got to immediately use them here. I’d like to say that I can see the improvement within the writings compared to previous UPCs.

Tags: Physics, Programming, Python

UPC 2021 - Thicker Martian Atmosphere

University Physics Competition (UPC) is an annual event that undergraduates can partake in to solve a physics problem and writing a formal paper within 48 hours. We were a team of three and this is my second UPC. The paper This browser does not support PDFs. Download the PDF to view it: Download PDF The doodle We tried problem B and got stuck so we switch to problem A This browser does not support PDFs. Download the PDF to view it: Download PDF Here’s the .ipynb for this paper.

Tags: Physics, Programming, Python

UPC 2020 - Quadcopter Stability in Wind

University Physics Competition (UPC) is an annual event that undergraduates can partake in to solve a physics problem and writing a formal paper within 48 hours. We were a team of three and this was our first time attempting UPC. We took on the Problem B challenge, Quadcopter Stability in Wind, because that seems the most plausible given our high-school level knowledge at that time. The paper This browser does not support PDFs. Download the PDF to view it: Download PDF The doodles RIP Jamboard.

Tags: Physics, Programming, Python

Python Getting Started

Python is a programming language. But not all computers can read Python. You’d first need to download Python from https://www.python.org. For guides on how to install Python, I’ll refer these videos for MacOS or Windows. Amit Thinks - How to install Python 3.13.0 on Windows 11 WittCode - How to Install Python on Mac What’s important is that Python needs to be added to the PATH or Environment Variables. This enables you to access Python through Command Prompt/Terminal (I’ll use the term terminal to reference these because it’s shorter).

Tags: Programming, Python

String Simulation

Say you have a load on a massless string placed somewhat like this. Fig 1. Displacements of three masses on a loaded string under tension T. Sourced from [1, p. 91]. The differential equation for each load is \[ \ddot{y_r} = \frac{T}{ma}(y_{r-1}-2y_r+y_{r+1}) \] Where \( m \) is the mass of the load which is the same and \( a \) is the horizontal distance from each load [1, p. 91].

Tags: Physics, Programming, Python