Skip to content

Commit caf4f51

Browse files
authored
Merge pull request #929 from duffee/main
Reinvigorating Keele's Physics contribution
2 parents 7d7e63f + b6dee67 commit caf4f51

File tree

391 files changed

+26765
-3
lines changed

Some content is hidden

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

391 files changed

+26765
-3
lines changed
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 Sara Hesse, Brock University, 2018
3+
# cleaned up, added solution and re-written to use NumberWithUnits
4+
##ENDDESCRIPTION
5+
6+
## DBsubject(Fluids)
7+
## DBchapter(Fluid Statics)
8+
## DBsection(Density)
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('11.2')
16+
## Problem1('1')
17+
## MO(1)
18+
## Static(1)
19+
## KEYWORDS('volume','density','mass')
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+
$volume = NumberWithUnits( 31.103 / 19.32, 'cm^3');
34+
35+
ANS( $volume->cmp );
36+
37+
38+
Context()->texStrings;
39+
BEGIN_TEXT
40+
41+
Gold is sold by the troy ounce \((31.103 \, \rm g)\).
42+
What is the volume of 1 troy ounce of pure gold?
43+
The density of gold is \(19.32 \, \rm g \, cm^{-3}\).
44+
$PAR
45+
\( V = \) \{ans_rule(15)\}
46+
47+
END_TEXT
48+
49+
50+
BEGIN_HINT
51+
Consider the relationship between volume and density.
52+
END_HINT
53+
54+
BEGIN_SOLUTION
55+
$PAR $BBOLD SOLUTION $EBOLD $PAR
56+
57+
\( \displaystyle V = \frac{m}{\rho} = \frac{31.103 }{ 19.32} = $volume \)
58+
59+
END_SOLUTION
60+
61+
62+
COMMENT('Uses NumberWithUnits');
63+
ENDDOCUMENT();
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
##DESCRIPTION
2+
# originally written by Brandon Lostracco and Sara Hesse, Brock University, 2018
3+
# cleaned up, added solution and re-written to use NumberWithUnits
4+
##ENDDESCRIPTION
5+
6+
## DBsubject(Fluids)
7+
## DBchapter(Fluid Statics)
8+
## DBsection(Density)
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('11.2')
16+
## Problem1('2')
17+
## MO(1)
18+
## KEYWORDS('mass','density','conversion','volume')
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+
$mass = NumberWithUnits( random(30, 40, 0.1), 'kg');
33+
$density = NumberWithUnits( 13.6, 'g/cm^3');
34+
35+
$volume = Real($mass->value / $density->value);
36+
37+
ANS( $volume->cmp );
38+
39+
40+
Context()->texStrings;
41+
BEGIN_TEXT
42+
43+
Mercury is commonly supplied in flasks containing \($mass\).
44+
What is the volume in liters of this much mercury?
45+
The density of Mercury is \($density\).
46+
$PAR
47+
\{ans_rule(20)\} \(\textrm{L}\)
48+
49+
END_TEXT
50+
51+
52+
BEGIN_HINT
53+
Consider the unit conversion between kilograms and grams.
54+
END_HINT
55+
56+
BEGIN_SOLUTION
57+
$PAR $BBOLD SOLUTION $EBOLD $PAR
58+
59+
\( \displaystyle V = \frac{m}{\rho} = \frac{$mass}{$density} = $volume \ \rm L \)
60+
61+
END_SOLUTION
62+
63+
64+
ENDDOCUMENT();
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
##DESCRIPTION
2+
# originally written by Brandon Lostracco and Sara Hesse, Brock University, 2018
3+
# cleaned up, added solution and re-written to use NumberWithUnits
4+
##ENDDESCRIPTION
5+
6+
## DBsubject(Fluids)
7+
## DBchapter(Fluid Statics)
8+
## DBsection(Density)
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('11.2')
16+
## Problem1('3')
17+
## MO(1)
18+
## KEYWORDS('volume','mass','conversion','density')
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+
$volume = NumberWithUnits( random(1.5, 2.5, 0.01), 'L');
33+
$density = NumberWithUnits( 1.29, 'g*cm^-3');
34+
35+
$mass = NumberWithUnits( $volume * $density, 'g');
36+
ANS( $mass->cmp );
37+
38+
39+
Context()->texStrings;
40+
BEGIN_TEXT
41+
42+
What is the mass of a deep breath of air having a volume of \($volume\)?
43+
The density of air is \($density\).
44+
$PAR
45+
\( m = \) \{ans_rule(15)\}
46+
47+
END_TEXT
48+
49+
BEGIN_HINT
50+
Consider the conversion between liters and cubic centimeters.
51+
END_HINT
52+
53+
BEGIN_SOLUTION
54+
$PAR $BBOLD SOLUTION $EBOLD $PAR
55+
56+
\( m = \rho V = ($density)($volume) = $mass \)
57+
58+
END_SOLUTION
59+
60+
61+
COMMENT('Uses NumberWithUnits');
62+
ENDDOCUMENT();
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
##DESCRIPTION
2+
# originally written by Brandon Lostracco and Sara Hesse, Brock University, 2018
3+
# cleaned up, added solution and re-written to use NumberWithUnits
4+
##ENDDESCRIPTION
5+
6+
## DBsubject(Fluids)
7+
## DBchapter(Fluid Statics)
8+
## DBsection(Density)
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('11.2')
16+
## Problem1('4')
17+
## MO(1)
18+
## KEYWORDS('mass','density','volume','Archimedes')
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+
$mass = NumberWithUnits( random(200, 300, 0.1), 'g');
33+
$volume = NumberWithUnits( random(60, 100, 0.1), 'cm^3');
34+
35+
$density = NumberWithUnits( $mass/$volume, 'g/cm^3');
36+
ANS( $density->cmp );
37+
38+
39+
Context()->texStrings;
40+
BEGIN_TEXT
41+
42+
A straightforward method of finding the density of an object is to measure its mass
43+
and then measure its volume by submerging it in a graduated cylinder.
44+
What is the density of a \($mass\) rock that displaces \($volume\) of water?
45+
(Note that the accuracy and practical applications of this technique are more limited
46+
than a variety of others that are based on Archimedes' principle.)
47+
$PAR
48+
\( \rho = \) \{ans_rule(15)\}
49+
50+
END_TEXT
51+
52+
53+
BEGIN_HINT
54+
Consider relationship between volume, mass, and density.
55+
END_HINT
56+
57+
BEGIN_SOLUTION
58+
$PAR $BBOLD SOLUTION $EBOLD $PAR
59+
60+
\( \displaystyle \rho = \frac{m}{V} = \frac{$mass}{$volume} = $density \)
61+
62+
END_SOLUTION
63+
64+
65+
COMMENT('Uses NumberWithUnits');
66+
ENDDOCUMENT();
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
##DESCRIPTION
2+
# originally written by Brandon Lostracco and Sara Hesse, Brock University, 2018
3+
# cleaned up, added solution and re-written to use NumberWithUnits
4+
##ENDDESCRIPTION
5+
6+
## DBsubject(Fluids)
7+
## DBchapter(Fluid Statics)
8+
## DBsection(Density)
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('11.2')
16+
## Problem1('5')
17+
## MO(1)
18+
## KEYWORDS('volume','radius','density','mass','depth')
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+
$mass = NumberWithUnits( random(300, 400, 0.1), 'g');
33+
$depth = NumberWithUnits( random(5, 10, 0.1), 'cm');
34+
$density = NumberWithUnits( 1, 'g*cm^-3');
35+
36+
$radius = NumberWithUnits( sqrt($mass /($density * Real($PI) * $depth)), 'cm');
37+
ANS( $radius->cmp );
38+
39+
40+
Context()->texStrings;
41+
BEGIN_TEXT
42+
43+
Suppose you have a coffee mug with a circular cross section and vertical sides (uniform radius).
44+
What is its inside radius if it holds \($mass\) of coffee
45+
when filled to a depth of \($depth\)?
46+
Assume coffee has the same density as water.
47+
$PAR
48+
\( r = \) \{ans_rule(15)\}
49+
50+
END_TEXT
51+
52+
53+
BEGIN_HINT
54+
Consider volume of a cylinder.
55+
END_HINT
56+
57+
BEGIN_SOLUTION
58+
$PAR $BBOLD SOLUTION $EBOLD $PAR
59+
60+
\( \displaystyle r = \sqrt{ \frac{m}{\rho \pi d} }
61+
= \sqrt{ \frac{$mass}{($density) \pi ($depth)} }
62+
= $radius
63+
\)
64+
65+
END_SOLUTION
66+
67+
68+
COMMENT('Uses NumberWithUnits');
69+
ENDDOCUMENT();

0 commit comments

Comments
 (0)