Stellar system
The fllowing C program uses the FreeGLUT package to produce orbits for stellar objects. I have not yet applied Kepler's equations to produce elliptical orbits instead of the circular ones shown. As well as Debian 9 'Stretch' 64 bit Linux, I have got the program to run on the Raspberry Pi with Raspbian 10 'Buster'. Here are screenshot of the program output: The program can be compiled by using the syntax gcc programname.c -o programname -lglut -lGL Here is the program code // ---------------------------------------------------------- // Includes // ---------------------------------------------------------- #include <stdio.h> #include <stdarg.h> #include <math.h> #define GL_GLEXT_PROTOTYPES #ifdef __APPLE__ #include <GLUT/glut.h> #else #include <GL/glut.h> #endif static GLfloat rot; //rotation angle // ---------------------------------------------------------- // Function Prototypes // -----------------------------------...