[npl] / trunk / NationalProblemLibrary / ASU-topics / setProbability / cond9.pg Repository:
ViewVC logotype

View of /trunk/NationalProblemLibrary/ASU-topics/setProbability/cond9.pg

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1479 - (download) (annotate)
Tue Aug 24 14:40:25 2010 UTC (2 years, 9 months ago) by apizer
File size: 934 byte(s)
Results of running convert_fun_in_dir.sh to clean up problems

    1 ## DESCRIPTION
    2 ## Probability
    3 ## ENDDESCRIPTION
    4 
    5 ## KEYWORDS('probability, 'conditional')
    6 ## Tagged by cmd6a 7/18/07
    7 
    8 ## DBsubject('Probability')
    9 ## DBchapter('Discrete Probability')
   10 ## DBsection('Conditional Probability')
   11 ## Date('')
   12 ## Author('')
   13 ## Institution('')
   14 ## TitleText1('')
   15 ## EditionText1('')
   16 ## AuthorText1('')
   17 ## Section1('')
   18 ## Problem1('')
   19 
   20 DOCUMENT();        # This should be the first executable line in the problem.
   21 
   22 loadMacros(
   23 "PG.pl",
   24 "PGbasicmacros.pl",
   25 "PGchoicemacros.pl",
   26 "PGanswermacros.pl",
   27 "PGgraphmacros.pl",
   28 "PGauxiliaryFunctions.pl"
   29 );
   30 
   31 TEXT(beginproblem());
   32 $showPartialCorrectAnswers = 1;
   33 
   34 $b = random(0.2,0.5,0.1);
   35 $c = random(0.6,0.9,0.1);
   36 $d = $b*$c;
   37 
   38 BEGIN_TEXT
   39 $BR
   40 If \( P(A \cap B) = $d \),   and \( P(A|B) = $b \),  then $BR
   41  $SPACE  \( P(B) = \)\{ans_rule(10)\}
   42 
   43 END_TEXT
   44 
   45 ANS(num_cmp($c, mode=>"arith"));
   46 
   47 
   48 
   49 ENDDOCUMENT();       # This should be the last executable line in the problem.
   50 

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9