-
-
Notifications
You must be signed in to change notification settings - Fork 436
Expand file tree
/
Copy pathrich1.pg
More file actions
91 lines (72 loc) · 3.1 KB
/
Copy pathrich1.pg
File metadata and controls
91 lines (72 loc) · 3.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
## DESCRIPTION
## Algebra
## ENDDESCRIPTION
## Tagged by cmd6a 8/6/06
## DBsubject(Algebra)
## DBchapter(Functions)
## DBsection(Definition, concept)
## Institution(ASU)
## MLT(intgraph)
## MLTleader(1)
## Level(2)
## KEYWORDS('algebra','function','graph')
DOCUMENT(); # This should be the first executable line in the problem.
loadMacros(
"PGstandard.pl",
"PGchoicemacros.pl",
"PGgraphmacros.pl",
"PGasu.pl",
"PGcourse.pl"
);
TEXT(beginproblem());
$showPartialCorrectAnswers = 0;
@x = (-.5, 0, 2, 4, 6, 8, 15, 24, 30, 36.5);
@y = ( 10, 10, 8, 6, 5, 4, 5, 8, 9, 9.5);
@ym =( -1, -1,-1,-.5,-.1,0,.5,.5, .1,.01 );
$herm = new Hermite(~~@x, ~~@y, ~~@ym);
$gr = init_graph(-1,-1,38,14, 'axes'=>[0,0],);
new Fun($herm->rf_f,$gr);
##Best fit is next
$graph0 = init_graph(-1,-1,38,14, 'axes'=>[0,0],);
$f = "10.1-8.5*exp(-x/5) for x in <0,16> using color:blue and weight:2";
$g = "4.6344+4*exp((19-x)/8) for x in <19,38> using color:blue and weight:2";
$h = "-.120036*x**2+3.84115*x-21 for x in <16,19> using color:blue and weight:2";
plot_functions($graph0, $f, $g, $h);
$graph1 = init_graph(-1,-1,38,14, 'axes'=>[0,0],);
for ($i=0; $i<=1; $i++) {
$j = 5*$i;$k = 4*$i+5;
$a = (-$y[$k]+$y[$j])/($x[$k]-$x[$j]);$b = 14-$y[$j]-$a*$x[$j];
$f = "$a*x+$b for x in <$x[$j],$x[$k]> using color:blue and weight:2";
plot_functions($graph1, $f); }
$graph3 = init_graph(-1,-1,38,14, 'axes'=>[0,0],);
$f = "11*(x+1)**-0.4 for x in <0,38> using color:blue and weight:2";
plot_functions($graph3, $f);
$graph2 = init_graph(-1,-1,38,14, 'axes'=>[0,0],);
$c = 9.5385; $b = .2634; $a = 7.6294;
$f = "$c/(1+$a*exp(-$b*x)) for x in <0,38> using color:blue and weight:2";
plot_functions($graph2, $f);
$m = new_multiple_choice();
$m->qa( "",image(insertGraph($graph0),
alt=>"Logistic growth curve starting near zero, rising with increasing steepness, then leveling off toward a horizontal asymptote around y equals 9.5."
) );
$m->extra(image(insertGraph($graph1),
alt=>"Logistic growth curve starting near zero, increasing with decreasing rate, and leveling off near a horizontal asymptote around y equals 9.5."
),
image(insertGraph($graph2),
alt=>"Logistic growth curve starting near zero, increasing with an S-shaped pattern, and leveling off to a horizontal asymptote around y equals 9.5."
),
image(insertGraph($graph3),
alt=>"Logistic growth curve starting near zero, increasing with steep middle section, then leveling off to approach a horizontal asymptote around y equals 9.5."
), image(insertGraph($gr),
alt=>"Logistic growth curve starting near zero, increasing with steep middle section, then leveling off to approach a horizontal asymptote around y equals 9.5."
) );
BEGIN_TEXT
You place a frozen turkey pot pie in an oven and bake it for 45 minutes. Then you take it out and place it on a table where it cools for an hour. Which graph best represents the temperature of the pie as a function of time?
$BR
$BBOLD Note: $EBOLD Click on any graph to view a larger graph.
$BR
\{ $m->print_a() \}
$BR
END_TEXT
ANS(radio_cmp( $m->correct_ans ) ) ;
ENDDOCUMENT(); # This should be the last executable line in the problem.