Please code the following in python: The process by which light refracts through
ID: 3716363 • Letter: P
Question
Please code the following in python:
The process by which light refracts through a lens depends on its wavelength. This leads to chromatic aberrations, wherein white light is split into a spectrum such that cach color focuses at a different position on the optical axis: One way to try and correct for this is to use two lenses spaced apart by some distance d. The optical power (loosely, the strength of light convergence provided by a lens or series of lenses) in this case is given by P-(n-1)K, +(n-1)K, -(n-1 K,K,d Where n is the index of refraction and K, and K2are related to the curvature of the lenses. The chromatic aberration is minimized when dP/dn =0 What value of n corresponds to dP/dn 0 whend0.5, K -2.8, and K2-5.0? Determine your answer (a) numerically and (b) analytically (determine the analytical equation for n, and evaluate it with the above values in your Python program). Confirm that your answers agree!Explanation / Answer
##### Answer for above equation for value of n is : 1.55714285714286