Project aim: Create an animation of Euler's equation in R using the rgl library, following the discussion at Wikipedia's Graphics Lab.
Progress:
- Create a 3D surface of the exponentiation of complex numbers (
ComplexScene.R
) - Truncate the function to the -2π to 2π range
- Draw a cosine wave on the surface
- Animate the camera
- Make the axes' ticks and labels be based on π, like this
- Draw an exponential curve on the surface
- Fade out the surface to hide the jagged edges from truncating it (workaround: just choose viewport appropriately.)
Instructions:
- Install the packages on Ubuntu:
sudo apt-get install r-base r-cran-rgl
- Start R:
R
- Load the file that generates the complex exponential plot:
source("ComplexScene.R")
- Quit R:
q()