Skip to content

Create an animation of Euler's equation in R using the rgl library

License

Notifications You must be signed in to change notification settings

slashme/3deuler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

3deuler

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()

About

Create an animation of Euler's equation in R using the rgl library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages