Skip to content

Commit b2f384b

Browse files
committed
Adding Wolfe Chapter 25, Geometric Optics
1 parent 440741b commit b2f384b

File tree

64 files changed

+4560
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+4560
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
## DESCRIPTION
2+
# originally written by Brandon Lostracco and Connor Wilson, Brock University, 2018
3+
# cleaned up, added solution and re-written to use NumberWithUnits
4+
## ENDDESCRIPTION
5+
6+
## DBsubject(Optics)
7+
## DBchapter(Optics)
8+
## DBsection(The Ray Aspect of Light)
9+
## Date(December 2021)
10+
## Institution(Keele University)
11+
## Author(Boyd Duffee)
12+
## TitleText1('College Physics')
13+
## AuthorText1('Wolfe et. al')
14+
## EditionText1('2015')
15+
## Section1('25.1')
16+
## Problem1('1')
17+
## MO(1)
18+
## RESOURCES('NU_U17-25-01-001.png')
19+
## KEYWORDS('geometric','light','mirror','optics','ray','reflection')
20+
21+
DOCUMENT();
22+
loadMacros(
23+
'PGstandard.pl',
24+
'parserNumberWithUnits.pl',
25+
);
26+
27+
TEXT(beginproblem());
28+
Context("Numeric")->flags->set( tolerance => 0.005 );
29+
30+
$showPartialCorrectAnswers = 1;
31+
$showHint = 3;
32+
33+
34+
$distance_eyes = NumberWithUnits( random(1.4, 1.9, 0.01), 'm');
35+
$distance_head = NumberWithUnits( random(0.15, 0.2, 0.01), 'm');
36+
37+
$mirror_bottom = $distance_eyes / Real(2);
38+
$mirror_top = $distance_head / Real(2) + $distance_eyes;
39+
ANS( $mirror_bottom->cmp );
40+
ANS( $mirror_top->cmp );
41+
42+
43+
Context()->texStrings;
44+
BEGIN_TEXT
45+
46+
\{ image( "NU_U17-25-01-001.png", width=>346, height=>549,
47+
tex_size=>700, extra_html_tags=>'alt="Plane mirror - Ray diagram"' ) \}
48+
49+
$PAR
50+
Suppose a man stands in front of a mirror as shown above.
51+
His eyes are \($distance_eyes\) above the floor,
52+
and the top of his head is \($distance_head\) higher.
53+
Find the height above the floor of the top and bottom of the smallest mirror
54+
in which he can see both the top of his head and his feet.
55+
How is this distance related to the man's height?
56+
57+
$PAR
58+
The bottom of the mirror is \{ans_rule(10)\} above the floor.
59+
60+
$PAR
61+
The top of the mirror is \{ans_rule(10)\} above the floor.
62+
63+
END_TEXT
64+
65+
66+
BEGIN_HINT
67+
Recall the law of reflection.
68+
END_HINT
69+
70+
BEGIN_SOLUTION
71+
$PAR $BBOLD SOLUTION $EBOLD $PAR
72+
73+
\( \displaystyle h_{bottom} = \frac{h_{eyes}}{2}
74+
= \frac{$distance_eyes}{2}
75+
= $mirror_bottom
76+
\)
77+
$PAR
78+
\( \displaystyle h_{top} = h_{eyes} + \frac{h_{head}}{2}
79+
= $distance_eyes + \frac{$distance_head}{2}
80+
= $mirror_top
81+
\)
82+
83+
END_SOLUTION
84+
85+
86+
COMMENT('Uses NumberWithUnits');
87+
ENDDOCUMENT();
189 KB
Loading
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
## DESCRIPTION
2+
# originally written by Brandon Lostracco and Connor Wilson, Brock University, 2018
3+
# cleaned up, added solution and re-written to use NumberWithUnits
4+
## ENDDESCRIPTION
5+
6+
## DBsubject(Optics)
7+
## DBchapter(Optics)
8+
## DBsection(The Law of Refraction)
9+
## Date(December 2021)
10+
## Institution(Keele University)
11+
## Author(Boyd Duffee)
12+
## TitleText1('College Physics')
13+
## AuthorText1('Wolfe et. al')
14+
## EditionText1('2015')
15+
## Section1('25.3')
16+
## Problem1('5')
17+
## MO(1)
18+
## KEYWORDS('geometric','light','optics','ray','refraction')
19+
20+
DOCUMENT();
21+
loadMacros(
22+
'PGstandard.pl',
23+
'parserNumberWithUnits.pl',
24+
);
25+
26+
TEXT(beginproblem());
27+
Context("Numeric")->flags->set( tolerance => 0.005 );
28+
29+
$showPartialCorrectAnswers = 1;
30+
$showHint = 3;
31+
32+
33+
$c = NumberWithUnits( 2.998E8, 'm*s^-1');
34+
35+
$n_water = 1.333;
36+
($name, $n_liquid) = @{list_random(
37+
[glycerine => 1.473],
38+
[benzene => 1.501],
39+
['carbon tetrachloride' => 1.461],
40+
)};
41+
$speed_water = $c / Real($n_water);
42+
$speed_liquid = $c / Real($n_liquid);
43+
44+
ANS( $speed_water->cmp );
45+
ANS( $speed_liquid->cmp );
46+
47+
48+
Context()->texStrings;
49+
BEGIN_TEXT
50+
51+
What is the speed of light in water? In $name?
52+
The indices of refraction for water is \($n_water\) and for $name is \($n_liquid\).
53+
54+
$PAR
55+
\( v_{water} = \) \{ans_rule(15)\}
56+
57+
$PAR
58+
\( v_{$name} = \) \{ans_rule(15)\}
59+
60+
END_TEXT
61+
62+
63+
BEGIN_HINT
64+
Can you rearrange the definition of the index of refraction to solve for the speed of light in each medium?
65+
END_HINT
66+
67+
BEGIN_SOLUTION
68+
$PAR $BBOLD SOLUTION $EBOLD $PAR
69+
70+
\( \displaystyle v_{water} = \frac{c}{n} = \frac{$c}{$n_water} = $speed_water \)
71+
$PAR
72+
\( \displaystyle v_{$name} = \frac{c}{n} = \frac{$c}{$n_liquid} = $speed_liquid \)
73+
74+
END_SOLUTION
75+
76+
77+
COMMENT('Uses NumberWithUnits');
78+
ENDDOCUMENT();
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
## DESCRIPTION
2+
# originally written by Brandon Lostracco and Connor Wilson, Brock University, 2018
3+
# cleaned up, added solution and re-written to use NumberWithUnits
4+
## ENDDESCRIPTION
5+
6+
## DBsubject(Optics)
7+
## DBchapter(Optics)
8+
## DBsection(The Law of Refraction)
9+
## Date(December 2021)
10+
## Institution(Keele University)
11+
## Author(Boyd Duffee)
12+
## TitleText1('College Physics')
13+
## AuthorText1('Wolfe et. al')
14+
## EditionText1('2015')
15+
## Section1('25.3')
16+
## Problem1('6')
17+
## MO(1)
18+
## KEYWORDS('geometric','light','optics','ray','refraction')
19+
20+
DOCUMENT();
21+
loadMacros(
22+
'PGstandard.pl',
23+
'parserNumberWithUnits.pl',
24+
);
25+
26+
TEXT(beginproblem());
27+
Context("Numeric")->flags->set( tolerance => 0.005 );
28+
29+
$showPartialCorrectAnswers = 1;
30+
$showHint = 3;
31+
32+
33+
$c = NumberWithUnits( 2.998E8, 'm*s^-1');
34+
35+
($name_gas, $n_gas) = @{list_random(
36+
[air => 1.000293],
37+
['carbon dioxide' => 1.00045],
38+
[hydrogen => 1.000139],
39+
[oxygen => 1.000271],
40+
)};
41+
($name_solid, $n_solid) = @{list_random(
42+
[diamond => 2.491],
43+
[fluorite => 1.434],
44+
['crown glass' => 1.52],
45+
['flint glass' => 1.66],
46+
[plexiglas => 1.51],
47+
['crystalline quartz' => 1.544],
48+
['fused quartz' => 1.458],
49+
['sodium chloride' => 1.544],
50+
[zircon => 1.923],
51+
)};
52+
$speed_gas = $c / Real($n_gas);
53+
$speed_solid = $c / Real($n_solid);
54+
55+
ANS( $speed_gas->cmp(tolerance => 0.0001) );
56+
ANS( $speed_solid->cmp );
57+
58+
59+
Context()->texStrings;
60+
BEGIN_TEXT
61+
62+
What is the speed of light in $name_gas? In $name_solid?
63+
The indices of refraction for $name_gas is \($n_gas\) and for $name_solid is \($n_solid\).
64+
65+
$PAR
66+
\( v_{\textrm{$name_gas}} = \) \{ans_rule(15)\}
67+
68+
$PAR
69+
\( v_{\textrm{$name_solid}} = \) \{ans_rule(15)\}
70+
71+
END_TEXT
72+
73+
74+
BEGIN_HINT
75+
Can you rearrange the definition of the index of refraction to solve for the speed of light in each medium?
76+
END_HINT
77+
78+
BEGIN_SOLUTION
79+
$PAR $BBOLD SOLUTION $EBOLD $PAR
80+
81+
\( \displaystyle v_{\textrm{$name_gas}} = \frac{c}{n} = \frac{$c}{$n_gas} = $speed_gas \)
82+
$PAR
83+
\( \displaystyle v_{\textrm{$name_solid}} = \frac{c}{n} = \frac{$c}{$n_solid} = $speed_solid \)
84+
85+
END_SOLUTION
86+
87+
88+
COMMENT('Uses NumberWithUnits');
89+
ENDDOCUMENT();
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
## DESCRIPTION
2+
# originally written by Brandon Lostracco and Connor Wilson, Brock University, 2018
3+
# cleaned up, added solution and re-written to use NumberWithUnits
4+
## ENDDESCRIPTION
5+
6+
## DBsubject(Optics)
7+
## DBchapter(Optics)
8+
## DBsection(The Law of Refraction)
9+
## Date(December 2021)
10+
## Institution(Keele University)
11+
## Author(Boyd Duffee)
12+
## TitleText1('College Physics')
13+
## AuthorText1('Wolfe et. al')
14+
## EditionText1('2015')
15+
## Section1('25.3')
16+
## Problem1('7')
17+
## MO(1)
18+
## KEYWORDS('geometric','light','optics','ray','refraction')
19+
20+
DOCUMENT();
21+
loadMacros(
22+
'PGstandard.pl',
23+
'parserNumberWithUnits.pl',
24+
);
25+
26+
TEXT(beginproblem());
27+
Context("Numeric")->flags->set( tolerance => 0.001 );
28+
29+
$showPartialCorrectAnswers = 1;
30+
$showHint = 3;
31+
32+
33+
$c = NumberWithUnits( 2.998E8, 'm*s^-1');
34+
35+
$v = NumberWithUnits( random(2.2, 2.3, 0.001)*1E8, 'm*s^-1');
36+
$n = Real( $c->value / $v->value );
37+
ANS( $n->cmp );
38+
39+
40+
Context()->texStrings;
41+
BEGIN_TEXT
42+
43+
Calculate the index of refraction for a medium
44+
in which the speed of light is \($v\).
45+
$PAR
46+
\( n = \) \{ans_rule(15)\}
47+
48+
END_TEXT
49+
50+
51+
BEGIN_HINT
52+
Recall the definition of the index of refraction.
53+
END_HINT
54+
55+
BEGIN_SOLUTION
56+
$PAR $BBOLD SOLUTION $EBOLD $PAR
57+
58+
\( \displaystyle n = \frac{c}{v} = \frac{$c}{$v} = $n \)
59+
60+
END_SOLUTION
61+
62+
63+
ENDDOCUMENT();
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
## DESCRIPTION
2+
# originally written by Brandon Lostracco and Connor Wilson, Brock University, 2018
3+
# cleaned up, added solution and re-written to use NumberWithUnits
4+
## ENDDESCRIPTION
5+
6+
## DBsubject(Optics)
7+
## DBchapter(Optics)
8+
## DBsection(The Law of Refraction)
9+
## Date(December 2021)
10+
## Institution(Keele University)
11+
## Author(Boyd Duffee)
12+
## TitleText1('College Physics')
13+
## AuthorText1('Wolfe et. al')
14+
## EditionText1('2015')
15+
## Section1('25.3')
16+
## Problem1('8')
17+
## MO(1)
18+
## KEYWORDS('geometric','light','optics','ray','refraction')
19+
20+
DOCUMENT();
21+
loadMacros(
22+
'PGstandard.pl',
23+
'parserNumberWithUnits.pl',
24+
);
25+
26+
TEXT(beginproblem());
27+
Context("Numeric")->flags->set( tolerance => 0.005 );
28+
29+
$showPartialCorrectAnswers = 1;
30+
$showHint = 3;
31+
32+
33+
$c = NumberWithUnits( 2.998E8, 'm*s^-1');
34+
35+
$v = NumberWithUnits( random(1.4, 1.5, 0.001)*1E8, 'm*s^-1');
36+
$n = Real( $c->value / $v->value );
37+
ANS( $n->cmp );
38+
39+
40+
Context()->texStrings;
41+
BEGIN_TEXT
42+
43+
Calculate the index of refraction for a medium
44+
in which the speed of light is \($v\).
45+
$PAR
46+
\( n = \) \{ans_rule(15)\}
47+
48+
END_TEXT
49+
50+
51+
BEGIN_HINT
52+
Recall the definition of the index of refraction.
53+
END_HINT
54+
55+
BEGIN_SOLUTION
56+
$PAR $BBOLD SOLUTION $EBOLD $PAR
57+
58+
\( \displaystyle n = \frac{c}{v} = \frac{$c}{$v} = $n \)
59+
60+
END_SOLUTION
61+
62+
63+
ENDDOCUMENT();

0 commit comments

Comments
 (0)