i missed my practicals pt.1


Works on pygame.

Simply install pygame using cmd: 

    pip install pygame

And run the code.

Works on simple principle of drawing ray diagrams.

First ray passes from optical center and the second ray passes from the focus.
Image is drawn by drawing perpendicular to the x axis from the point of intersection.
Dotted ray or image shows its virtual nature.

Intersection points are found using basics mathematics and concepts from straight lines.

Initial the code run and draws the graph of U vs V and then it is available for simulation.

The rectangular hyperbola is the graph of U vs V. 
A line drawn at 45 degrees from origin in the 2nd quadrant cuts the graph at 2f, 2f. This is used to determine the focal length of the given lens.

Thanks to
- My physics teacher, lab assistant, friends (Ayush, Ashwini) who helped in the experiment.


(And yes, i didn't miss my practicals)


dm




Comments

Thanks It really helped