-
-
Notifications
You must be signed in to change notification settings - Fork 436
Expand file tree
/
Copy pathprob4.pg
More file actions
84 lines (71 loc) · 2.52 KB
/
Copy pathprob4.pg
File metadata and controls
84 lines (71 loc) · 2.52 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
## DESCRIPTION
## Calculus
## ENDDESCRIPTION
## Tagged by cmd6a 3/13/06
## DBsubject(Calculus - single variable)
## DBchapter(Differentiation)
## DBsection(Hyperbolic functions)
## Institution(ASU)
## Level(2)
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;
$graph0 = init_graph(-4,-1,4,10, 'axes'=>[0,0],'grid'=>[8,11]);
$graph1 = init_graph(-6,-8,6,8, 'axes'=>[0,0],'grid'=>[12,16]);
$graph2 = init_graph(-4,-4,4,4, 'axes'=>[0,0],'grid'=>[8,8]);
$graph3 = init_graph(-2,-2,2,2, 'axes'=>[0,0],'grid'=>[4,4]);
$graph5 = init_graph(-6,-6,6,6, 'axes'=>[0,0],'grid'=>[12,12]);
$f1 = "cosh(x) for x in <-3,3> using color:red and weight:2";
$f2 = "sinh(x) for x in <-3,3> using color:red and weight:2";
$f3 = "tanh(x) for x in <-4,4> using color:red and weight:2";
$f4 = "arctanh(x) for x in <-1.1,1.1> using color:red and weight:2";
$f6 = "arcsinh(x) for x in <-6,6> using color:red and weight:2";
plot_functions($graph0, $f1);
plot_functions($graph1, $f2);
plot_functions($graph2, $f3);
plot_functions($graph3, $f4);
plot_functions($graph5, $f6);
# Make a new match list
$ml = new_match_list();
# enter questions and matching answers
$ml -> qa (
image(insertGraph($graph0),
alt=>"Graph of cosh(x), a U-shaped curve symmetric about the y-axis with minimum value 1 at x = 0."
),
" \(\cosh(x)\)",
image(insertGraph($graph1),
alt=>"Graph of arctanh(x) showing a vertical S-shaped curve with vertical asymptotes at x = -1 and x = 1"
),
" \(\sinh(x)\)",
image(insertGraph($graph2),
alt=>"Graph of hyperbolic cosine function, symmetric U-shaped curve with minimum value 1 at x = 0."
),
" \(\tanh(x)\)",
image(insertGraph($graph3),
alt=>"Graph of hyperbolic cosine function, symmetric about the y-axis with minimum value 1 at x = 0, increasing exponentially in both directions."
),
" \(\tanh^{-1}(x)\)",
image(insertGraph($graph5),
alt=>"Graph of tanh(x), an odd function with horizontal asymptotes at y = 1 and y = -1, passing through the origin with an S-shaped curve."
),
" \(\sinh^{-1}(x)\)" );
$ml ->choose(5);
BEGIN_TEXT
$PAR
Match each hyperbolic function or inverse hyperbolic function to its graph.
$PAR
\{ $ml -> print_q \}
$PAR
\{$ml -> print_a \}
$PAR
END_TEXT
ANS(str_cmp( $ml->ra_correct_ans ) ) ;
COMMENT('In this version, students can earn partial credit.');
ENDDOCUMENT(); # This should be the last executable line in the problem.