play phryzby with physics

The Power of a Lens

solved ThinLens

Q. If f = 0.5 mf=0.5m for a glass lens, what is the power of the lens, in dioptres?

FFf = 0.5 mP = ?
Inputs
f
0.50 m
Outputs
powerP?

How it's solved

Solved with ThinLens

Given

  • f=0.5m

Find P.

Working
  1. power of a lens(lens)P=1f
  2. P=10.5
  3. P=2D
  4. P=2m⁻¹=2D
Conclusion

A lens's power is how strongly it bends light, the inverse of its focal length in metres.

The web of concepts

given read from the words equation asked

The Ruby that solves it

The question and its solution are small Ruby files. The engine runs them.

question.rb
1require_relative "../physics"23question :the_power_of_a_lens do4  kind :numerical5  describes "If f = %{focal_length} for a glass lens, %{power}, in dioptres?"6  given focal_length: "0.5 m"7  asks power: "what is the power of the lens"8end
solution.rb
1require_relative "../questions/the_power_of_a_lens"2require_relative "../science/ray_optics_and_optical_instruments/thin_lens"34solve :the_power_of_a_lens, using: ThinLens do5  objects :lens67  take focal_length: lens.focal_length89  power = lens.power_of_the_lens10  answer power:, in: "D"1112  conclusion "A lens's power is how strongly it bends light, the inverse of its focal length in metres."13end
playground.rb
1require_relative "../solutions/the_power_of_a_lens"23play_with :the_power_of_a_lens do4  title "The Power of a Lens"5end
The laws it drew on
quantitywrittenunitswithinfrom
refractive index of the lensn——ThinLens
index of the surroundingsns——ThinLens
first radiusR1m—ThinLens
second radiusR2m—ThinLens
size of the second radiusr2m—ThinLens
focal lengthfm—ThinLens
size of the focal lengthfsizem—ThinLens
power of the lensPm⁻¹—ThinLens
distance in frontdom—ThinLens
object distanceum—ThinLens
image distancevm—ThinLens
magnificationm——ThinLens
object heighthom—ThinLens
image heighthim—ThinLens
object distance of groundugm—
distance in front of grounddo,gm—
object distance of lensum—
distance in front of lensdom—
focal length of groundfgm—
refractive index of the lens of groundng——
index of the surroundings of groundns,g——
first radius of groundR1,gm—
second radius of groundR2,gm—
focal length of lensfm—
refractive index of the lens of lensn——
index of the surroundings of lensns——
first radius of lensR1m—
second radius of lensR2m—
power of the lens of groundPgm⁻¹—
power of the lens of lensPm⁻¹—
image distance of groundvgm—
image distance of lensvm—
magnification of groundmg——
magnification of lensm——
image height of groundhi,gm—
object height of groundho,gm—
image height of lenshim—
object height of lenshom—
size of the second radius of lensr2m—
size of the focal length of lensfsizem—
ul=−do,l
an object in front is against the light
1fl=(nlns,l-1)⋅(1R1,l-1R2,l)
lens makers formula
Pl=1fl
power of a lens
1vl-1ul=1fl
thin lens formula
ml=vlul
magnification of a lens
ml=hi,lho,l
magnification compares the heights
ug=−do,g
an object in front is against the light(ground)
u=−do
an object in front is against the light(lens)
1fg=(ngns,g-1)⋅(1R1,g-1R2,g)
lens makers formula(ground)
1f=(nns-1)⋅(1R1-1R2)
lens makers formula(lens)
Pg=1fg
power of a lens(ground)
P=1f
power of a lens(lens)
1vg-1ug=1fg
thin lens formula(ground)
1v-1u=1f
thin lens formula(lens)
mg=vgug
magnification of a lens(ground)
m=vu
magnification of a lens(lens)
mg=hi,gho,g
magnification compares the heights(ground)
m=hiho
magnification compares the heights(lens)