Skip to content

Commit efbf494

Browse files
committed
Update Videos in Problems
1 parent 0690ab5 commit efbf494

10 files changed

+66
-69
lines changed

Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_43.pg

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ $piecewise =
5959
Row(["\(\displaystyle f(x) = \Bigg\{ \; \)",ans_rule(1).$BR.$BR.ans_rule(1),'\(\displaystyle for \)'.$BR.$BR.'\(\displaystyle for \)',ans_rule(1).$BR.$BR.ans_rule(1), '\( < x < \)'.$BR.$BR. '\( < x < \)', ans_rule(1).$BR.$BR.ans_rule(1)],separation=>1).
6060
EndTable();
6161

62+
$video = MODES(
63+
HTML=>
64+
'<iframe width="420" height="315" src="https://www.youtube.com/embed/AQaKh_1poBI?si=434GxpZTrlifghlN"frameborder="0" allowfullscreen></iframe>',
65+
TeX =>
66+
"An embedded YouTube video."
67+
);
68+
6269
BEGIN_TEXT
6370
$BCENTER
6471
\{ image(insertGraph($graph),tex_size => 400, width=>400, height=>400) \}
@@ -72,8 +79,16 @@ END_TEXT
7279

7380
BEGIN_PGML
7481
[$piecewise]*
82+
83+
[$video]*
84+
7585
END_PGML
86+
BEGIN_TEXT
87+
$BR
7688

89+
If the video does not work, \{ htmlLink ("https://www.youtube.com/watch?v=AQaKh_1poBI", "click here to watch on YouTube.", "TARGET='_blank'")\}
90+
$BR
91+
END_TEXT
7792
$slope1 = ($y2- $y1)/($x2 - $x1);
7893
$slope2 = ($y3- $y2)/($x3 - $x2);
7994
$ans1 = FEQ( EV2(" $slope1*(x - $x1) + $y1 ") );

Contrib/CCCS/CollegeAlgebra/3.2/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_3_2_45.pg

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ Context()->noreduce("(-x)-y");
5555

5656
$fun = PiecewiseFunction("$c*x-$d if x < -$b else sqrt(x) if x > $a")->reduce;
5757

58+
$video = MODES(
59+
HTML=>
60+
'<iframe width="420" height="315" src="https://www.youtube.com/embed/B1jfpiI-QQ8?si=y-N2Bm3EMsjziFU0"frameborder="0" allowfullscreen></iframe>',
61+
TeX =>
62+
"An embedded YouTube video."
63+
);
64+
5865
##############################################
5966
# Main text
6067

@@ -68,10 +75,15 @@ Graph the piecewise function to find its domain and range.
6875

6976
Range: [_________________]{$range} [@ AnswerFormatHelp("intervals") @]*
7077

71-
78+
[$video]*
7279

7380
END_PGML
81+
BEGIN_TEXT
82+
$BR
7483

84+
If the video does not work, \{ htmlLink ("https://www.youtube.com/watch?v=B1jfpiI-QQ8", "click here to watch on YouTube.", "TARGET='_blank'")\}
85+
$BR
86+
END_TEXT
7587
#Context()->normalStrings;
7688

7789

Contrib/CCCS/CollegeAlgebra/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_9.pg

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,6 @@ $ans1=Compute($a-$b);
6161

6262
$ans2=Compute($f2-$f1);
6363

64-
$video = MODES(
65-
HTML=>
66-
'<iframe width="420" height="315" src="//www.youtube.com/embed/KCDtss0pT_c"frameborder="0" allowfullscreen></iframe>',
67-
TeX =>
68-
"An embedded YouTube video."
69-
);
7064

7165
###########################
7266
# Main text
@@ -92,16 +86,9 @@ For each year [`t`], the number of trees in Forest A is represented by the funct
9286
5. After 30 years, by how many trees will the larger forest exceed the smaller forest? Round to two decimal places.
9387
[_________________]{$ans2}
9488

95-
[$video]*
96-
END_PGML
97-
9889

99-
BEGIN_TEXT
100-
$BR
90+
END_PGML
10191

102-
If the video does not work, \{ htmlLink ("https://www.youtube.com/watch?v=KCDtss0pT_c", "click here to watch on YouTube.", "TARGET='_blank'")\}
103-
$BR
104-
END_TEXT
10592

10693
############################
10794
# Solution

Contrib/CCCS/CollegeAlgebra/6.6/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_6_12.pg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ $ans=List(" 1/$c*ln($b/$a) ");
4040

4141
$video = MODES(
4242
HTML=>
43-
'<iframe width="560" height="315" src="https://www.youtube.com/embed/XBpg0PN6ZG4" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>',
43+
'<iframe width="560" height="315" src="https://www.youtube.com/embed/Y7r0cl6X6mU?si=PUdq8Bsp0vuPC5bk" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>',
4444
TeX =>
4545
"An embedded YouTube video."
4646
);
@@ -62,7 +62,7 @@ END_PGML
6262
BEGIN_TEXT
6363
$BR
6464

65-
If the video does not work, \{ htmlLink ("https://youtu.be/XBpg0PN6ZG4", "click here to watch on YouTube.", "TARGET='_blank'")\}
65+
If the video does not work, \{ htmlLink ("https://www.youtube.com/watch?v=Y7r0cl6X6mU", "click here to watch on YouTube.", "TARGET='_blank'")\}
6666
$BR
6767
END_TEXT
6868

Contrib/CCCS/CollegeAlgebra/7.6/CCD_CCCS_Openstax_IntAlg_IA-2017-000-LC_7_6_347.pg

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,6 @@ else {
7070
}
7171

7272

73-
$video = MODES(
74-
HTML=>
75-
'<iframe width="420" height="315" src="//www.youtube.com/embed/2RnS3fSHVV8"frameborder="0" allowfullscreen></iframe>',
76-
TeX =>
77-
"An embedded YouTube video."
78-
);
7973

8074
###########################
8175
# Main text
@@ -89,15 +83,10 @@ Solve the rational inequality. Enter the answer in interval notation.
8983

9084
[_______________________________]{$x1} [@ AnswerFormatHelp("intervals") @]*
9185

92-
[$video]*
86+
9387
END_PGML
9488

9589

96-
BEGIN_TEXT
97-
$BR
98-
If the video does not work, \{ htmlLink ("https://www.youtube.com/watch?v=2RnS3fSHVV8", "click here to watch on YouTube.", "TARGET='_blank'")\}
99-
$BR
100-
END_TEXT
10190

10291
}
10392
else
@@ -109,16 +98,9 @@ Solve the rational inequality. Enter the answer in interval notation.
10998

11099
[_______________]{$x1} [@ AnswerFormatHelp("intervals") @]*
111100

112-
[$video]*
113-
END_PGML
114101

102+
END_PGML
115103

116-
BEGIN_TEXT
117-
$BR
118-
119-
If the video does not work, \{ htmlLink ("https://www.youtube.com/watch?v=2RnS3fSHVV8", "click here to watch on YouTube.", "TARGET='_blank'")\}
120-
$BR
121-
END_TEXT
122104

123105
}
124106

Contrib/CCCS/CollegeAlgebra/Circles/CCD_CCCS_Circles_6.pg

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,12 @@ $radius = sqrt($radicand);
5151
Context("LimitedPoint");
5252
$center=Point("( ($a/2),($b/2) )");
5353

54-
54+
$video = MODES(
55+
HTML=>
56+
'<iframe width="420" height="315" src="https://www.youtube.com/embed/KA4nOBywEpI?si=jeAOTxg7Rg3AHI3o" frameborder="0" allowfullscreen></iframe>',
57+
TeX =>
58+
"An embedded YouTube video."
59+
);
5560

5661

5762
###########################
@@ -66,10 +71,16 @@ Radius:[_______________]{$radius}[@ AnswerFormatHelp("numbers") @]*
6671

6772
Center:[_______________]{$center}[@ AnswerFormatHelp("points") @]*
6873

69-
74+
[$video]*
7075
END_PGML
7176

72-
77+
78+
BEGIN_TEXT
79+
$BR
80+
81+
If the video does not work, \{ htmlLink ("https://www.youtube.com/watch?v=KA4nOBywEpI", "click here to watch on YouTube.", "TARGET='_blank'")\}
82+
$BR
83+
END_TEXT
7384

7485
############################
7586
#Answers

Contrib/CCCS/CollegeAlgebra/Circles/RRCC_CCCS_Circles_1.pg

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,6 @@ $f = Formula("(x-$h)^2+(y-$k)^2")->reduce;
4646
Context("LimitedPoint");
4747
$cen = Point("($h,$k)");
4848

49-
$video = MODES(
50-
HTML=>
51-
'<iframe width="420" height="315" src="//www.youtube.com/embed/k5Z3qb052Ek" frameborder="0" allowfullscreen></iframe>',
52-
TeX =>
53-
"An embedded YouTube video."
54-
);
5549

5650

5751
###########################
@@ -66,15 +60,10 @@ Find the center and radius of the following circle. Enter the center as an order
6660
+ radius: [___]{$r} [@ AnswerFormatHelp("numbers") @]*
6761

6862

69-
[$video]*
63+
7064
END_PGML
7165

72-
BEGIN_TEXT
73-
$BR
7466

75-
If the video does not work, \{ htmlLink ("https://www.youtube.com/watch?v=k5Z3qb052Ek", "click here to watch on YouTube.", "TARGET='_blank'")\}
76-
$BR
77-
END_TEXT
7867

7968

8069
############################

Contrib/CCCS/CollegeAlgebra/Circles/RRCC_CCCS_Circles_5.pg

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,13 @@ $ans1=Formula("(x-$h)^2+(y-$k)^2")->reduce;
5151
$ans2=Formula("$r2");
5252

5353

54-
54+
$video = MODES(
55+
HTML=>
56+
'<iframe width="420" height="315" src="//www.youtube.com/embed/k5Z3qb052Ek" frameborder="0" allowfullscreen></iframe>',
57+
TeX =>
58+
"An embedded YouTube video."
59+
);
60+
5561

5662
###########################
5763
# Main text
@@ -64,10 +70,15 @@ Find the equation for the circle with center [` ([$h],[$k]) `] and passes throug
6470
[_______________] [`=`] [_____________][@ AnswerFormatHelp("numbers") @]*
6571

6672

67-
73+
[$video]*
6874
END_PGML
6975

70-
76+
BEGIN_TEXT
77+
$BR
78+
79+
If the video does not work, \{ htmlLink ("https://www.youtube.com/watch?v=k5Z3qb052Ek", "click here to watch on YouTube.", "TARGET='_blank'")\}
80+
$BR
81+
END_TEXT
7182

7283
############################
7384
#Answers

Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_1.pg

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,7 @@ $g=Formula("$c*x+$d")->reduce;
4747
Context("Interval");
4848
if($m>$c){$ans=Compute("($a,infinity)");} else{$ans=Compute("(-infinity,$a)");}
4949

50-
$video = MODES(
51-
HTML=>
52-
'<iframe width="420" height="315" src="//www.youtube.com/embed/xdiBjypYFRQ" frameborder="0" allowfullscreen></iframe>',
53-
TeX =>
54-
"An embedded YouTube video."
55-
);
50+
5651
###########################
5752
# Main text
5853

@@ -62,14 +57,9 @@ Solve [`` [$f] > [$g] ``]. Enter the solution in interval notation.
6257

6358
[_______________]{$ans} [@ AnswerFormatHelp("intervals") @]*
6459

65-
[$video]*
60+
6661
END_PGML
67-
BEGIN_TEXT
68-
$BR
6962

70-
If the video does not work, \{ htmlLink ("https://www.youtube.com/watch?v=xdiBjypYFRQ", "click here to watch on YouTube.", "TARGET='_blank'")\}
71-
$BR
72-
END_TEXT
7363

7464

7565
############################

Contrib/CCCS/CollegeAlgebra/Polynomial_Inequality/RRCC_CCCS_Openstax_AlgTrig_AT-1-001-AS_Poly_Ineq_3.pg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ if($d>0){$ans=Compute("(-infinity,$min)U($max,infinity)");} else{$ans=Compute("(
4949

5050
$video = MODES(
5151
HTML=>
52-
'<iframe width="420" height="315" src="//www.youtube.com/embed/ZNtzWpU80-0" frameborder="0" allowfullscreen></iframe>',
52+
'<iframe width="420" height="315" src="//www.youtube.com/embed/xdiBjypYFRQ" frameborder="0" allowfullscreen></iframe>',
5353
TeX =>
5454
"An embedded YouTube video."
5555
);
@@ -67,7 +67,7 @@ END_PGML
6767
BEGIN_TEXT
6868
$BR
6969

70-
If the video does not work, \{ htmlLink ("https://www.youtube.com/watch?time_continue=135&v=ZNtzWpU80-0", "click here to watch on YouTube.", "TARGET='_blank'")\}
70+
If the video does not work, \{ htmlLink ("https://www.youtube.com/watch?v=xdiBjypYFRQ", "click here to watch on YouTube.", "TARGET='_blank'")\}
7171
$BR
7272
END_TEXT
7373

0 commit comments

Comments
 (0)