Difference between revisions of "CAPA Physics Problems"

From WeBWorK_wiki
Jump to navigation Jump to search
(New page: 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...)
 
Line 1: Line 1:
 
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.
 
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.
   
To download your own copy transfer to the directory where you would like the physics problem library to reside and type
 
  +
The problems have been collected into a [http://hosted.webwork.rochester.edu/webwork2/physics_library?login_practice_user=true physics "course"] so that you can browse through them and see what is already available.
   
cvs -d :pserver:anoncvs@cvs.webwork.rochester.edu:/webwork/cvs/rochester checkout rochester_physics_problib
 
  +
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/rochester_physics_problib )
   
I'll assume this creates a directory in .../webwork/rochester_physics_problib
 
  +
and type
   
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:
 
  +
cvs -d :pserver:anoncvs@cvs.webwork.rochester.edu:/webwork/cvs/rochester checkout rochester_physics_problib
  +
  +
I'll assume this creates a directory in
  +
  +
.../webwork/libraries/rochester_physics_problib
  +
  +
you will need to adjust several lines in <code>global.conf</code>
  +
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
+
# Locations of CAPA resources. (Only necessary if you need to use converted CAPA
# problems.)
+
# problems.)
$pg{specialPGEnvironmentVars}{CAPA_Tools} = "$courseDirs{macros}/CAPA_Tools/",
+
$pg{specialPGEnvironmentVars}{CAPA_Tools} = "$courseDirs{macros}/CAPA_Tools/",
$pg{specialPGEnvironmentVars}{CAPA_MCTools} = "$courseDirs{macros}/CAPA_MCTools/",
+
$pg{specialPGEnvironmentVars}{CAPA_MCTools} = "$courseDirs{macros}/CAPA_MCTools/",
$pg{specialPGEnvironmentVars}{CAPA_GraphicsDirectory} = "$courseDirs{html}/CAPA_Graphics/",
+
$pg{specialPGEnvironmentVars}{CAPA_GraphicsDirectory} = "$courseDirs{html}/CAPA_Graphics/",
$pg{specialPGEnvironmentVars}{CAPA_Graphics_URL} = "$courseURLs{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
 
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
Line 22: Line 33:
 
 
   
ln -s ...webwork/rochester_physics_problib/macros/CAPA_Tools CAPA_Tools
+
ln -s ...webwork/libraries/rochester_physics_problib/macros/CAPA_Tools CAPA_Tools
ln -s ...webwork/rochester_physics_problib/macros/CAPA_MCTools CAPA_MCTools
+
ln -s ...webwork/libraries/rochester_physics_problib/macros/CAPA_MCTools CAPA_MCTools
   
and in the physics_course/html directory
+
and in the physics_course/html directory
   
 
 
   
ln -s ...webwork/rochester_physics_problib/CAPA_Graphics CAPA_Graphics
+
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.
+
If you want to make these problems usable by all courses then just change the lines in <code>global.conf</code> 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.
 
Most of the problems work, but not all, so check things out before you assign them.

Revision as of 08:15, 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/rochester_physics_problib )

and type

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

I'll assume this creates a directory in

.../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.