Difference between revisions of "CAPA Physics Problems"

From WeBWorK_wiki
Jump to navigation Jump to search
Line 6: Line 6:
 
transfer to the directory where you would
 
transfer to the directory where you would
 
like the physics problem library to reside
 
like the physics problem library to reside
(e.g. /opt/webwork/libraries/rochester_physics_problib )
+
(e.g. /opt/webwork/libraries/ )
   
 
and type
 
and type
Line 12: Line 12:
 
cvs -d :pserver:anoncvs@cvs.webwork.rochester.edu:/webwork/cvs/rochester checkout rochester_physics_problib
 
cvs -d :pserver:anoncvs@cvs.webwork.rochester.edu:/webwork/cvs/rochester checkout rochester_physics_problib
   
I'll assume this creates a directory in
 
  +
In what follows I'll assume the physics problem library has been created at
   
 
.../webwork/libraries/rochester_physics_problib
 
.../webwork/libraries/rochester_physics_problib

Revision as of 08:20, 14 November 2008

Rochester has a collection of problems used in physics. These problems were originally CAPA problems and were converted some years ago, so the code isn't pretty, but for the most part they work.

The problems have been collected into a physics "course" so that you can browse through them and see what is already available.

To download your own copy pf the physics collection transfer to the directory where you would like the physics problem library to reside

(e.g.   /opt/webwork/libraries/ )

and type

cvs -d :pserver:anoncvs@cvs.webwork.rochester.edu:/webwork/cvs/rochester checkout  rochester_physics_problib

In what follows I'll assume the physics problem library has been created at

.../webwork/libraries/rochester_physics_problib

you will need to adjust several lines in global.conf so that the macros associated with the CAPA library can be found. The original snippet reads:


# Locations of CAPA resources. (Only necessary if you need to use converted CAPA
# problems.)
$pg{specialPGEnvironmentVars}{CAPA_Tools}             = "$courseDirs{macros}/CAPA_Tools/", 
$pg{specialPGEnvironmentVars}{CAPA_MCTools}           = "$courseDirs{macros}/CAPA_MCTools/",  
$pg{specialPGEnvironmentVars}{CAPA_GraphicsDirectory} = "$courseDirs{html}/CAPA_Graphics/", 
$pg{specialPGEnvironmentVars}{CAPA_Graphics_URL}      = "$courseURLs{html}/CAPA_Graphics/",   

If you only need to use these physics problems in one course (say physics_course) you can leave these lines as they are and create links in the .../physics_course/templates/macros directory


ln -s  ...webwork/libraries/rochester_physics_problib/macros/CAPA_Tools CAPA_Tools
ln -s  ...webwork/libraries/rochester_physics_problib/macros/CAPA_MCTools CAPA_MCTools

and in the .../physics_course/html directory


ln -s ...webwork/libraries/rochester_physics_problib/CAPA_Graphics CAPA_Graphics

If you want to make these problems usable by all courses then just change the lines in global.conf described above so that they point to the addresses where the CAPA macros and graphics can be found.

Most of the problems work, but not all, so check things out before you assign them.