-
-
Notifications
You must be signed in to change notification settings - Fork 418
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating precalculus problems for Tradler/Carley textbook
- Loading branch information
Showing
263 changed files
with
17,881 additions
and
912 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
Contrib/CUNY/CityTech/CollegeAlgebra_Trig/ExponentialEquations-Calc/population-decline.pg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
##DESCRIPTION | ||
## Algebra problem: exponential model of population growth | ||
##ENDDESCRIPTION | ||
|
||
|
||
######################################################################## | ||
|
||
DOCUMENT(); | ||
|
||
loadMacros( | ||
"PGstandard.pl", # Standard macros for PG language | ||
"MathObjects.pl", | ||
"PGML.pl", | ||
"contextFraction.pl" | ||
); | ||
|
||
# Print problem number and point value (weight) for the problem | ||
TEXT(beginproblem()); | ||
|
||
# Show which answers are correct and which ones are incorrect | ||
$showPartialCorrectAnswers = 1; | ||
|
||
############################################################## | ||
# | ||
# Setup | ||
# | ||
# | ||
Context("Numeric"); | ||
|
||
$year = random(2013,2023,1); | ||
$initial_population = random(201000,699000,1000); | ||
$rate = random(1.6,6.3,0.1); | ||
$wait_time = random(17,65,1); | ||
$laterpopulation=$initial_population*exp(-$rate*$wait_time/100); | ||
$halftime=floor($year+100*ln(2)/$rate); | ||
|
||
############################################################## | ||
# | ||
# Text | ||
# | ||
# | ||
|
||
BEGIN_PGML | ||
|
||
|
||
In [`[$year]`], the population of a city is [`[$initial_population]`], and is decreasing exponentially at [`[$rate]%`] per year. | ||
|
||
a. What is the population size after [`[$wait_time]`] years? [_________________________]{$laterpopulation} | ||
|
||
b. In what year will half of the population be left? [_________________________]{$halftime} | ||
|
||
|
||
|
||
END_PGML | ||
|
||
############################################################## | ||
# | ||
# Answers | ||
# | ||
# | ||
|
||
|
||
COMMENT("Funded by US DoE Title V: Opening Gateways grant."); | ||
|
||
ENDDOCUMENT(); |
71 changes: 71 additions & 0 deletions
71
Contrib/CUNY/CityTech/CollegeAlgebra_Trig/ExponentialEquations-Calc/population-growth.pg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
##DESCRIPTION | ||
## Algebra problem: exponential model of population growth | ||
##ENDDESCRIPTION | ||
|
||
|
||
######################################################################## | ||
|
||
DOCUMENT(); | ||
|
||
loadMacros( | ||
"PGstandard.pl", # Standard macros for PG language | ||
"MathObjects.pl", | ||
"PGML.pl", | ||
"contextFraction.pl" | ||
); | ||
|
||
# Print problem number and point value (weight) for the problem | ||
TEXT(beginproblem()); | ||
|
||
# Show which answers are correct and which ones are incorrect | ||
$showPartialCorrectAnswers = 1; | ||
|
||
############################################################## | ||
# | ||
# Setup | ||
# | ||
# | ||
Context("Numeric"); | ||
|
||
$year = random(2013,2023,1); | ||
$initial_population = random(501000,999000,1000); | ||
$rate = random(1.1,3.9,0.1); | ||
$wait_time = random(31,76,1); | ||
$wait_time_year = $year+$wait_time; | ||
$laterpopulation=$initial_population*exp($rate*$wait_time/100); | ||
$doubletime=floor($year+100*ln(2)/$rate); | ||
$tripletime=floor($year+100*ln(3)/$rate); | ||
|
||
############################################################## | ||
# | ||
# Text | ||
# | ||
# | ||
|
||
BEGIN_PGML | ||
|
||
|
||
In [`[$year]`], the population of a country is [`[$initial_population]`], and is growing at [`[$rate]%`] per year. | ||
|
||
a. What will the population be in [`[$wait_time_year]`]? [_________________________]{$laterpopulation} | ||
|
||
b. In what year will the population be double? [_________________________]{$doubletime} | ||
|
||
c. In what year will the population be triple? [_________________________]{$tripletime} | ||
|
||
|
||
|
||
|
||
|
||
END_PGML | ||
|
||
############################################################## | ||
# | ||
# Answers | ||
# | ||
# | ||
|
||
|
||
COMMENT("Funded by US DoE Title V: Opening Gateways grant."); | ||
|
||
ENDDOCUMENT(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.