[npl] / trunk / NationalProblemLibrary / ASU-topics / setLinesInPlane / srw1_10_17.pg Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

# View of /trunk/NationalProblemLibrary/ASU-topics/setLinesInPlane/srw1_10_17.pg

Sat Jan 14 02:13:08 2006 UTC (7 years, 4 months ago) by jj
File size: 1030 byte(s)
```New problems for the library.
```

```    1 ## DESCRIPTION
2 ## Algebra
3 ## ENDDESCRIPTION
4
5 ## KEYWORDS('Algebra', 'lines')
6 ## Tagged by LD
7
8 ## DBsubject('Algebra')
9 ## DBchapter('equations')
10 ## DBsection('linear')
11 ## Date('')
12 ## Author('')
13 ## Institution('ASU')
14 ## TitleText1('')
15 ## EditionText1('')
16 ## AuthorText1('')
17 ## Section1('')
18 ## Problem1('')
19
20 DOCUMENT();        # This should be the first executable line in the problem.
21
23 "PG.pl",
24 "PGbasicmacros.pl",
25 "PGchoicemacros.pl",
27 "PGauxiliaryFunctions.pl"
28 );
29
30 TEXT(&beginproblem);
32
33 \$x1 = random(13,23,1);
34 \$y1 = random(21,43,1);
35
36 TEXT(EV2(<<EOT));
37 The equation of the line that goes through the point
38 \( ( \$x1 ,\$y1 ) \) and is parallel to the \(x\)-axis can be written in the form
39 \( y = mx+b \) where \( m \)
40 is: \{ans_rule(15) \}
41 \$BR
42 EOT
43 \$ans = 0;
44 &ANS(std_num_cmp(\$ans));
45
46 TEXT(EV2(<<EOT));
47 and  where \( b \) is: \{ans_rule(15) \}
48 \$BR
49 EOT
50 \$ans = \$y1;
51 &ANS(std_num_cmp(\$ans));
52
53 ENDDOCUMENT();        # This should be the last executable line in the problem.
```