[rochester] / trunk / rochester_problib / setAlgebra08LinearEqns / sw1_6_74.pg Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

# View of /trunk/rochester_problib/setAlgebra08LinearEqns/sw1_6_74.pg

Fri Jul 4 01:34:46 2003 UTC (9 years, 10 months ago) by voloshin
File size: 667 byte(s)
```minor modifications: math mode, breaklines, displaystyle, ranges of coefficients...
```

```    1 #DESCRIPTION
2 ##  Algebra problem: Solving a equation
3 ##ENDDESCRIPTION
4
5 ##KEYWORDS('algebra', 'equations with symbols')
6
7 DOCUMENT();        # This should be the first executable line in the problem.
8
10 "PG.pl",
11 "PGbasicmacros.pl",
12 "PGchoicemacros.pl",
14 "PGauxiliaryFunctions.pl"
15 );
16
17 TEXT(beginproblem());
18
19 \$showPartialCorrectAnswers = 1;
20
21
22 BEGIN_TEXT
23 Solve the equation \( P = 2l+2w \) for \(w\).
24 \$BR
25 Your answer is : \{ans_rule(20) \}
26 \$BR
27 \$BBOLD Note: \$EBOLD The answer is case sensitive!
28 END_TEXT
29
30 \$ans = "(P-2*l)/2";
31
32 ANS(fun_cmp(\$ans, var=>['P','l']));
33
34 ENDDOCUMENT();        # This should be the last executable line in the problem.
```

 aubreyja at gmail dot com ViewVC Help Powered by ViewVC 1.0.9