Example #1
0
 def part_a( self ):
     '''
     a) ideal trajectory: no drag (C=0) and no spin (-> Magnus force = 0) [2 points]
     '''
     initial_velocity = self.initial_velocity
     dimpled = False
     spin = 0
     def C( v, dimpled ):
         return 0
     
     
     for initial_angle in self.initial_angles_degrees:
         part_a_ball = Golf( initial_velocity, initial_angle, C, dimpled, spin )
         part_a_ball.display_plot()
         for filetype in self.filetypes:
             part_a_ball.save_plot( filetype )