Thanks,
Tom
Error messages
Undefined subroutine &main::BEGIN_TITLE called at line 13 of [TMPL]/karen/cervone3.pg
Error details
Problem1 ERROR caught by Translator while processing problem file:karen/cervone3.pg **************** Undefined subroutine &main::BEGIN_TITLE called at line 13 of [TMPL]/karen/cervone3.pg **************** ------Input Read 1 DOCUMENT(); # This should be the first executable line in the problem. 2 3 loadMacros( 4 "PGstandard.pl", 5 "PGunion.pl", 6 "PGcourse.pl" 7 ); 8 9 TEXT(beginproblem()); 10 11 ###################################################################### 12 13 BEGIN_TITLE("The Traditional Approach"); 14 15 $useOldAnswerMacros = 1; 16 17 BEGIN_PROBLEM(); 18 19 ############################## 20 # 21 # Setup 22 # 23 24 $a = non_zero_random(-5,5,1); 25 26 ############################## 27 # 28 # Main text 29 # 30 31 BEGIN_TEXT 32 Consider the function \(f(t)=\left<t^2,1+t,3t+\cos(\pi t)\right>\).$PAR 33 Then \(f'(t)\) = \(\langle\) \{ans_rule(15)\}, \{ans_rule(15)\}, \{ans_rule(15)\} \(\rangle\)$BR 34 and \(f'($a)\) = \(\langle\) \{ans_rule(15)\}, \{ans_rule(15)\}, \{ans_rule(15)\} \(\rangle\). 35 $PAR 36 The tangent line to the graph of \(f\) at \(t=$a\) is given 37 parametrically by:$BR 38 \(L(t)\) = \(\langle\) \{ans_rule(15)\}, \{ans_rule(15)\}, \{ans_rule(15)\} \(\rangle\). 39 END_TEXT 40 41 ############################## 42 # 43 # Answers 44 # 45 46 ($px,$py,$pz) = ($a**2,1+$a,3*$a+cos($PI*$a)); 47 ($vx,$vy,$vz) = (2*$a,1,3-$PI*sin($PI*$a)); 48 49 ANS(fun_cmp(["2t","1","3 - pi sin(pi t)"],var=>"t")); 50 ANS(num_cmp([$px,$py,$pz])); 51 52 ANS(fun_cmp(["$px+$vx*t","$py+$vy*t","$pz+$vz*t"],var=>"t")); 53 54 ############################## 55 56 END_PROBLEM(); 57 END_TITLE(); 58 59 ###################################################################### 60 61 ENDDOCUMENT(); # This should be the last executable line in the problem.