[npl] / trunk / NationalProblemLibrary / Dartmouth / setStewartAppendixG / problem_1.pg Repository:
ViewVC logotype

Annotation of /trunk/NationalProblemLibrary/Dartmouth/setStewartAppendixG/problem_1.pg

Parent Directory Parent Directory | Revision Log Revision Log


Revision 483 - (view) (download)

1 : jjholt 156 ## DESCRIPTION
2 : jjholt 473 ## Complex Arithmetic
3 : jjholt 156 ## ENDDESCRIPTION
4 : jj 134
5 : jjholt 473 ## KEYWORDS('complex numbers', 'multiplication')
6 : jjholt 156 ## Tagged by tda2d
7 :    
8 :     ## DBsubject('Calculus')
9 : jjholt 483 ## DBchapter('Complex Variables')
10 : jjholt 156 ## DBsection('Complex Numbers')
11 :     ## Date('')
12 :     ## Author('')
13 :     ## Institution('Dartmouth')
14 :     ## TitleText1('Calculus')
15 :     ## EditionText1('5')
16 :     ## AuthorText1('Stewart')
17 : jjholt 473 ## Section1('G')
18 : jjholt 156 ## Problem1('')
19 :    
20 : jj 134 DOCUMENT();
21 :     loadMacros("PG.pl",
22 :     "PGbasicmacros.pl",
23 :     "PGchoicemacros.pl",
24 :     "PGanswermacros.pl",
25 :     "PGauxiliaryFunctions.pl",
26 :     "PGgraphmacros.pl",
27 :     "Dartmouthmacros.pl");
28 :    
29 :    
30 :     ## Do NOT show partial correct answers
31 :     $showPartialCorrectAnswers = 0;
32 :    
33 :     ## Lots of set up goes here
34 :     $a = random(-10,10);
35 :     $b = random(-10,10);
36 :     $c = non_zero_random(-10,10);
37 :     $d = non_zero_random(-10,10);
38 :    
39 :    
40 :     ## Ok, we are ready to begin the problem...
41 :     ##
42 :     TEXT(beginproblem());
43 :    
44 :    
45 :     BEGIN_TEXT
46 :     $BR
47 :     Evaluate the expression \(\displaystyle ($a + $b i)($c + $d i)\), and write your answer in the form \( a + b i\).
48 :    
49 :     a = \{ans_rule()\} and b = \{ ans_rule()\}.
50 :    
51 :     $PAR
52 :     END_TEXT
53 :     ANS(num_cmp( $a*$c - $b*$d ));
54 :     ANS(num_cmp( $b*$c + $a*$d ));
55 :     ENDDOCUMENT();
56 :    
57 :    
58 :    
59 :    

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9