[system] / trunk / wwmoodle / wwquestion / README.txt Repository: Repository Listing bbplugincoursesdistsnplrochestersystemwww

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

Sun Sep 9 02:53:16 2007 UTC (12 years, 5 months ago) by mleventi
File size: 3778 byte(s)
*** empty log message ***


    1 Webwork Question Type
2 ----------------------
3 Version: 0.3 (stable) Released 9/9/2007
4 Maintainer: Matthew Leventi  <mleventi@gmail.com>
5 CVS: cvs.webwork.rochester.edu:/webwork/cvs/system wwmoodle/wwquestion
6
7 This is a moodle questiontype module that will allow webwork questions to be asked in Moodle Quizzes and Lessons. Currently it supports many of the features found in the webwork2 system.
8
9 * If you are using this send me an email. Feedback is appreciated. *
10
11 Current Release:
12 * Derivation mismatch bugs fixed.
13 * New Test file
14 * External File support! (applet,images,graphs,etc)
15 * Code Refactoring
16 * New levels of Code Checking including warnings
17
18 PG Language: What is supported?
19 Simple and complex pg problems including those which use applets, images, graph generation problems, etc.
20
21 PG Language: What is not supported?
22 Currently the only PG files that don't fully work are those with custom graders. Hence problems will reveal which answers the student has correct despite the showCorrectAnswer flag being off.
23
24 Upgrading (from 0.1):
25 A database column was added called codecheck. If you have data that you don't want to lose your going to have to add the new column manually to the db
26 mysql command: ALTER TABLE mdl_question_webwork ADD COLUMN codecheck int(10) not null default 0;
27 Then you can delete the webwork directory and recreate it from the CVS
28 ** I am not really sure if this is backward compatible to 0.1. If you are having problems with questions edit them and submit to regenerate derived copies.
29
30
31 Setup:
32 1) Make a new folder named 'webwork' in the question/type directory.
33 2) Copy all the files from this directory into .
34 3) Point your browser to http://yourmoodle/admin to setup the question_webwork database table.
35
36 Configuration:
37 1) Change the WSDL path variable in the webwork/config.php file to point to your Webwork Problem Server's WSDL file.
38
39 Use:
40 Go into the question bank and create a new WeBWorK question.
41 A webwork question only has three special fields.
42     -code: Paste the perl code that renders the webwork question here.
43     -seed: The starting seed to use to generate random problems
44     -trials: The number of attempts the generator should make to generate and cache problems.
45
46 Finding webwork questions:
47 http://cvs.webwork.rochester.edu/viewcvs.cgi/rochester_problib/?cvsroot=UR+Problem+Library (for now)
48
49 Note:
50 Previewing the question will use random seeds.
51
52 Example Problem:
53
54 ##DESCRIPTION
55
56 # Singularities, Determine Type (Poles), Residues
57
58 ##ENDDESCRIPTION
59
60
61 DOCUMENT();        # This should be the first executable line in the problem.
62
64    "PGstandard.pl",     # Standard macros for PG language
65    "MathObjects.pl",
66    "PGunion.pl",        # Union College macros
67    #"PGcourse.pl",      # Customization file for the course
68 );
69
70 TEXT(beginproblem());
71 $showPartialCorrectAnswers = 1; 72 73 ############################################################## 74 # 75 # Setup 76 # 77 Context("Point"); 78 79$a = non_zero_random(-10,10,1);
80
81 $formula_string = Formula( "sin(1/($a*z))"  );
82
83 @singularities = ("(0, 1/$a)" ); 84$f = Compute("(0,1/$a)"); 85 ############################################################## 86 # 87 # Text 88 # 89 # 90 Context()->texStrings; 91 BEGIN_TEXT 92 93 Find the singularities and their residues for$PAR
94
95 $formula_string$
96
97 $PAR 98 \{ans_rule(60)\} 99$PAR
100 List the singularities and their residues as ordered pairs. (for example,
101 (3, pi), (-1,2) means that there is a singularity at $$3$$ with residue $$\pi$$
102 and a singularity at $$-1$$ with residue $$2$$.
103
104 $PA 105 END_TEXT 106 Context()->normalStrings; 107 ############################################################## 108 # 109 # Answers 110 # 111 # 112 113 ANS(List(@singularities)->cmp(correct_ans=>$f->{correct_ans}) );
114
115
116
117 ENDDOCUMENT();        # This should be the last executable line in the problem.
118
119
120
121
122 

 aubreyja at gmail dot com ViewVC Help Powered by ViewVC 1.0.9