2_Trajectories/idealCircularMotion/idealCircularMotion.c
//find electron position from circular motion equation:
find electron position from circular motion equation.
find electron position from circular motion equation .
void findPos(double *electronPos, double radius, double phase) {
  electronPos[0] = radius*cos(phase);
  electronPos[1] = radius*sin(phase);
  electronPos[2] = 0;
}
void findPos ( double * electronPos , double radius , double phase ) { electronPos [ 0 ] = radius * cos ( phase ) ; electronPos [ 1 ] = radius * sin ( phase ) ; electronPos [ 2 ] = 0 ; }
find electron position from circular motion equation:
find electron position from circular motion equation :