[system] / trunk / wwmoodle / wwquestion / README.txt Repository:
ViewVC logotype

View of /trunk/wwmoodle/wwquestion/README.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5150 - (download) (annotate)
Wed Jul 11 21:04:02 2007 UTC (12 years, 7 months ago) by mleventi
File size: 2529 byte(s)
README

    1 Webwork Question Type
    2 ----------------------
    3 Version: 0.1 (stable)
    4 Maintainer: Matthew Leventi  <mleventi@gmail.com>
    5 CVS: cvs.webwork.rochester.edu:/webwork/cvs/system wwmoodle/wwquestion
    6 
    7 Setup:
    8 1) Make a new folder named 'webwork' in the question/type directory.
    9 2) Copy all the files from either the zip or the cvs checkout into the new webwork directory.
   10 3) Point your browser to http://yourmoodle/admin to setup the question_webwork database table.
   11 
   12 Configuration:
   13 1) Change the WSDL path variable in the webwork/questiontype.php file to point to your Webwork Problem Server's WSDL file.
   14 2) Modify the displayMode to your preferences (images,jsMath,plainText)
   15 
   16 Use:
   17 A webwork question only has two special fields. 
   18     -code: Paste the perl code that renders the webwork question here.
   19     -seed: A value of 0 will randomize the values in a webwork problem for each student. Any other value will be the seed for all students. Hence all students will get the exact same problem
   20 
   21 Finding webwork questions:
   22 http://cvs.webwork.rochester.edu/viewcvs.cgi/rochester_problib/?cvsroot=UR+Problem+Library (for now)    
   23 
   24 Note:
   25 Previewing the question will use random seeds.
   26 
   27 ex problem)
   28 
   29 ##DESCRIPTION
   30 
   31 # Singularities, Determine Type (Poles), Residues
   32 
   33 ##ENDDESCRIPTION
   34 
   35 
   36 DOCUMENT();        # This should be the first executable line in the problem.
   37 
   38 loadMacros(
   39    "PGstandard.pl",     # Standard macros for PG language
   40    "MathObjects.pl",
   41    "PGunion.pl",        # Union College macros
   42    #"PGcourse.pl",      # Customization file for the course
   43 );
   44 
   45 TEXT(beginproblem());
   46 $showPartialCorrectAnswers = 1;
   47 
   48 ##############################################################
   49 #
   50 #  Setup
   51 #
   52 Context("Point");
   53 
   54 $a = non_zero_random(-10,10,1);
   55 
   56 $formula_string = Formula( "sin(1/($a*z))"  );
   57 
   58 @singularities = ("(0, 1/$a)" );
   59 $f = Compute("(0,1/$a)");
   60 ##############################################################
   61 #
   62 #  Text
   63 #
   64 #
   65 Context()->texStrings;
   66 BEGIN_TEXT
   67 
   68 Find the singularities and their residues for $PAR
   69 
   70 \[ $formula_string \]
   71 
   72 $PAR
   73 \{ans_rule(60)\}
   74 $PAR
   75 List the singularities and their residues as ordered pairs. (for example,
   76 (3, pi), (-1,2) means that there is a singularity at \(3\) with residue \(\pi\)
   77 and a singularity at \(-1\) with residue \(2\).
   78 
   79 $PA
   80 END_TEXT
   81 Context()->normalStrings;
   82 ##############################################################
   83 #
   84 #  Answers
   85 #
   86 #
   87 
   88 ANS(List(@singularities)->cmp(correct_ans=>$f->{correct_ans}) );
   89 
   90 
   91 
   92 ENDDOCUMENT();        # This should be the last executable line in the problem.
   93 
   94 
   95 
   96 
   97 

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9