Special

Clearance Sale!

We've been publishing for over five years now and it's time to clear out our inventory of back issues, so we're slashing prices!

RBD Magazines

Check out this amazing clearance sale of all our past issues. Missing some issues? This is a great time to complete your RBD collection. Save up to 40% off the regular price of our printed back issue packages. These prices are only good until the end of the year May 2008 and supplies are limited, so place your order today.

Article Preview


Buy Now

Print:
PDF:

Feature

Harmonic Motion

The pendulum as an elegant example of harmonic motion

Issue: 4.3 (January/February 2006)
Author: JC Cruz
Article Description: No description available.
Article Length (in bytes): 16,368
Starting Page Number: 15
RBD Number: 4309
Resource File(s):

Download Icon 4309.sit Updated: Monday, January 16, 2006 at 12:53 PM
Download Icon 4309.zip Updated: Monday, January 16, 2006 at 12:53 PM

Related Web Link(s):

http://calculuslab.deltacollege.edu/ODE/7-C-3/7-C-3-h.html
http://www.krellinst.org/UCES/archive/modules/diffeq/node10.html

Known Limitations: None

Excerpt of article text...

In my previous article, I demonstrated how to use the Euler Method to simulate the motion of a projectile. I have introduced a new REALbasic class, rbc_vector, which enables me to solve motion ODEs (Ordinary Differential Equations) using vector quantities. I have also shown a Sprite subclass, rbc_newton, which encapsulates the Euler Method as well as various motion parameters.

The topic for today is the physics of harmonic motion. I will introduce a new algorithm that can solve more complex ODEs with better precision and stability than the Euler Method. I will also discuss the physics behind harmonic motion. Finally, I will demonstrate how to simulate an elegant example of harmonic motion, the simple pendulum.

Basic Concepts

The Runge-Kutta Method

The Euler Method is a quick and simple way of numerically solving ODE equations. However, this algorithm suffers from a number of limitations. One primary limitation is that its accuracy is strongly dependent on the simulation step size. The smaller the step size, the better the accuracy. Consequently, smaller step sizes also translate to longer processing cycles.

...End of Excerpt. Please purchase the magazine to read the full article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com