Skip to content

Commit a09c25a

Browse files
committed
missing $ and updated random values
1 parent 39719d2 commit a09c25a

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
lines changed

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

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
## ENDDESCRIPTION
44

55

6-
## DBsubject(Algebra)
7-
## DBchapter(Exponential and logarithmic expressions and functions)
8-
## DBsection(Exponential functions)
6+
## DBsubject()
7+
## DBchapter()
8+
## DBsection()
99
## Date(06/16/2017)
1010
## Institution(Colorado Community College System)
1111
## Author(James Morski)
@@ -38,9 +38,10 @@ $showPartialCorrectAnswers = 1;
3838
Context("Numeric");
3939

4040
$a=random(2,5);
41-
$b=non_zero_random(-5,5,1);
42-
$c = non_zero_random(-2,3,1);
43-
$d=non_zero_random(-5,5,1);
41+
do{$b=non_zero_random(-5,5,1);
42+
$c = non_zero_random(-5,5,1);
43+
$d=non_zero_random(-5,5,1);}
44+
until( $a**($b*$d+$c) < 1000000 and $a**($b*$d+$c)>0.000001);
4445

4546
$f=Formula("$a**($b*x+$c)")->reduce;
4647

@@ -60,8 +61,6 @@ Context()->flags->set(showMixedNumbers=>0);
6061
Context()->flags->set(requirePureFractions=>1);
6162
$ans=Compute("$answer");
6263

63-
64-
6564
###########################
6665
# Main text
6766

Contrib/CCCS/PreCalculus/6.1/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_1_45.pg

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ $showPartialCorrectAnswers = 1;
3838
Context("Numeric");
3939

4040
$a=random(2,5);
41-
$b=non_zero_random(-5,5,1);
42-
$c = non_zero_random(-2,3,1);
43-
$d=non_zero_random(-5,5,1);
41+
do{$b=non_zero_random(-5,5,1);
42+
$c = non_zero_random(-5,5,1);
43+
$d=non_zero_random(-5,5,1);}
44+
until( $a**($b*$d+$c) < 1000000 and $a**($b*$d+$c)>0.000001);
4445

4546
$f=Formula("$a**($b*x+$c)")->reduce;
4647

@@ -60,8 +61,6 @@ Context()->flags->set(showMixedNumbers=>0);
6061
Context()->flags->set(requirePureFractions=>1);
6162
$ans=Compute("$answer");
6263

63-
64-
6564
###########################
6665
# Main text
6766

Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_23_sup1.pg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ install_problem_grader(~~&std_problem_grader);
4343

4444
# Two random integer to grab letters
4545
$n1 = random(0,10,1);
46-
do{$n2 = random(0,10,1)} until ($n2 != n1);
46+
do{$n2 = random(0,10,1)} until ($n2 != $n1);
4747

4848

4949
$root = $letter[$n1];

Contrib/CCCS/PreCalculus/6.3/CCD_CCCS_Openstax_AlgTrig_AT-1-001-AS_6_3_25_sup1.pg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ install_problem_grader(~~&std_problem_grader);
4343

4444
# Two random integer to grab letters
4545
$n1 = random(0,10,1);
46-
do{$n2 = random(0,10,1)} until ($n2 != n1);
46+
do{$n2 = random(0,10,1)} until ($n2 != $n1);
4747

4848

4949
$root = $letter[$n1];

0 commit comments

Comments
 (0)