[rochester] / trunk / rochester_problib / setDiscrete4Functions / ur_dis_4_2.pg Repository:
ViewVC logotype

View of /trunk/rochester_problib/setDiscrete4Functions/ur_dis_4_2.pg

Parent Directory Parent Directory | Revision Log Revision Log


Revision 283 - (download) (annotate)
Tue Jun 18 18:23:00 2002 UTC (10 years, 11 months ago) by ad001h
File size: 1231 byte(s)
added documentation

    1 ##DESCRIPTION
    2 ##KEYWORDS('Standard Example')
    3 ##this problem is also located in the directory setFunctions0Evaluate
    4 ##ENDDESCRIPTION
    5 
    6 DOCUMENT();        # This should be the first executable line in the problem.
    7 
    8 loadMacros(
    9 "PG.pl",
   10 "PGbasicmacros.pl",
   11 "PGchoicemacros.pl",
   12 "PGanswermacros.pl",
   13 "PGauxiliaryFunctions.pl"
   14 );
   15 
   16 TEXT(&beginproblem);
   17 
   18 #Numerical Answer
   19 
   20 BEGIN_TEXT
   21 Find the following values. $BR
   22 (a) \( \lfloor 1.1 \rfloor \) $BR
   23 \{ ans_rule(10) \}
   24 $PAR
   25 (b) \( \lceil 1.1 \rceil \) $BR
   26 \{ ans_rule(10) \}
   27 $PAR
   28 (c) \( \lfloor -0.1 \rfloor \) $BR
   29 \{ ans_rule(10) \}
   30 $PAR
   31 (d) \( \lceil -0.1 \rceil \) $BR
   32 \{ ans_rule(10) \}
   33 $PAR
   34 (e) \( \lceil 2.99 \rceil \) $BR
   35 \{ ans_rule(10) \}
   36 $PAR
   37 (f) \( \lceil -2.99 \rceil \) $BR
   38 \{ ans_rule(10) \}
   39 $PAR
   40 (g) \( \lfloor \frac{1}{2} + \lceil \frac{1}{2} \rceil \rfloor \) $BR
   41 \{ ans_rule(10) \}
   42 $PAR
   43 (h) \( \lceil \lfloor \frac{1}{2} \rfloor + \lceil \frac{1}{2}
   44 \rceil + \frac{1}{2} \rceil \) $BR
   45 \{ ans_rule(10) \}
   46 $PAR
   47 END_TEXT
   48 
   49 ANS( num_cmp( 1 ) );
   50 ANS( num_cmp( 2 ) );
   51 ANS( num_cmp( -1 ) );
   52 ANS( num_cmp( 0 ) );
   53 ANS( num_cmp( 3 ) );
   54 ANS( num_cmp( -2 ) );
   55 ANS( num_cmp( 1 ) );
   56 ANS( num_cmp( 2 ) );
   57 
   58 ENDDOCUMENT();        # This should be the last executable line in the problem.;

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9