[rochester] / trunk / rochester_problib / setAlgebra06EqnGraphs / p2.pg Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

# View of /trunk/rochester_problib/setAlgebra06EqnGraphs/p2.pg

Thu Jul 3 15:07:45 2003 UTC (9 years, 10 months ago) by voloshin
File size: 1753 byte(s)
```minor modifications like breakline, parenthesis, displaystyle...
```

```    1 #DESCRIPTION
2 ##  Algebra problem: Coordinates and Graphs
3 ##ENDDESCRIPTION
4 #DESCRIPTION
5 ##  Algebra problem: Coordinates and Graphs
6 ##ENDDESCRIPTION
7
8 ##KEYWORDS('algebra', 'graph')
9
10 DOCUMENT();        # This should be the first executable line in the problem.
11
13 "PG.pl",
14 "PGbasicmacros.pl",
15 "PGchoicemacros.pl",
17 "PGauxiliaryFunctions.pl",
19 );
20
21 TEXT(beginproblem());
22
25
26 \$a=random(1,9);
27
28 \$xint = \$a**(1/3);
29 \$yint = \$a;
30
31
32 BEGIN_TEXT
33 For the graph of the equation \(y=-x^3 + \$a\),
35 \$BR
36 The \(x\)-intercepts have \(x =\)  \{ans_rule(30)\}
37 \$BR \$BBOLD Note: \$EBOLD
38 If there is more than one answer enter them separated by commas.  If there are
39 none, enter \$BITALIC none \$EITALIC.
40 \$BR
41 The \(y\)-intercepts have \(y=\) \{ans_rule(30)\}
42 \$BR
43 \$BBOLD Note: \$EBOLD
44 If there is more than one answer enter them separated by commas.  If there are
45 none, enter \$BITALIC none \$EITALIC.
46 \$BR
47 Is the graph symmetric with respect to the \(x\)-axis?
48 Input \$BITALIC yes \$EITALIC or \$BITALIC no \$EITALIC here : \{ans_rule(10)\}
49 \$BR
50 Is the graph symmetric with respect to the \(y\)-axis?
51 Input \$BITALIC yes \$EITALIC or \$BITALIC no \$EITALIC here : \{ans_rule(10)\}
52 \$BR
53 Is the graph symmetric with respect to the origin?
54 Input \$BITALIC yes \$EITALIC or \$BITALIC no \$EITALIC here : \{ans_rule(10)\}
55 \$BR
56 END_TEXT
57
58 \$ans4 = "no";
59 \$ans5 = "no";
60 \$ans6 = "no";
61
62 ANS(number_list_cmp("\$xint", strings=>['none']));
63 ANS(number_list_cmp("\$yint", strings=>['none']));
64 ANS(std_str_cmp(\$ans4));
65 ANS(std_str_cmp(\$ans5));
66 ANS(std_str_cmp(\$ans6));
67
68 ENDDOCUMENT();        # This should be the last executable line in the problem.
69
```