Forum archive 2000-2006

Donald Behan - Presenting Solutions to Problems

Donald Behan - Presenting Solutions to Problems

by Arnold Pizer -
Number of replies: 0
inactiveTopicPresenting Solutions to Problems topic started 8/19/2001; 12:53:30 PM
last post 9/6/2001; 2:13:37 PM
userDonald Behan - Presenting Solutions to Problems  blueArrow
8/19/2001; 12:53:30 PM (reads: 2840, responses: 10)
Can anyone direct me to the code for a problem that presents a detailed solution to the problem, in addition to the numerical answer? I understand that WeBWorK supports this feature, but have not been able to find it on the net. I understand that when the necessary code is entered, the problem will have a solution button once answers are available to the student.

<| Post or View Comments |>


userZbigniew Fiedorowicz - Re: Presenting Solutions to Problems  blueArrow
8/20/2001; 8:09:16 AM (reads: 3212, responses: 1)
grepping through the current Rochester problem library, I find the following problems have solutions included:

webwork probLibrary [8] grep SOLUTION */*pg

setAlgebra2Powers/srw1_2_41.pg:SOLUTION(EV2(<<EOT));

setIntegrals19Area/ns6_1_27.pg:&SOLUTION(EV2(<<EOT));

setIntegrals19Area/ur_in_19_12.pg:&SOLUTION(EV2(<<EOT));

setIntegrals23Work/ns6_5_12.pg:&SOLUTION(EV3(<<'EOF'));

Zig Fiedorowicz

<| Post or View Comments |>


userMichael Gage - Re: Presenting Solutions to Problems  blueArrow
8/20/2001; 6:46:23 PM (reads: 3231, responses: 0)
Hi,

Details on entering solutions and hints are at:

PGbasicmacros.pl and then click on: hints and solutions macros

If you want the same evaluation done on the solution text as is done between BEGIN_TEXT/END_TEXT then use this format:

SOLUTION(EV3(<<'END_SOLUTION'));

solution text goes here:

END_SOLUTION

The END_SOLUTION must be on a line by itself, with no other characters on the line.

(In fact BEGIN_TEXT is just an abbreviation for:

TEXT(EV3(<<'END_TEXT'));

See The problem text for details.

<| Post or View Comments |>


userDonald Behan - Re: Presenting Solutions to Problems  blueArrow
8/21/2001; 12:01:47 PM (reads: 3561, responses: 0)
Where are the library problems found? I tried WW_Prob_Lib1, but got a "permission denied" message. When I entered the format above along with solution text, just below the EOT for the problem text, I got a "show solution" box on the problem, but when I checked that box and submitted my answer, nothing new showed up.

<| Post or View Comments |>


userMichael Gage - Re: Presenting Solutions to Problems  blueArrow
8/21/2001; 12:10:20 PM (reads: 3169, responses: 0)
They can be reached (fairly) reliably by going to the download webwork site:

http://webhost.math.rochester.edu/downloadWebwork

and clicking on the Library Problems button in the left hand margin. This link is still a bit experimental, so it may occasionally go down, however it's been doing fairly well recently.

This limits the easy availability of the library problems to those have signed up on this site. If you download webwork you are already signed up.

We are storing the current library in WW_Prob_Lib2

-- Mike

<| Post or View Comments |>


userDonald Behan - Re: Presenting Solutions to Problems  blueArrow
8/21/2001; 5:16:08 PM (reads: 3157, responses: 0)
I tried to do this, and also copied an example from the library. In both cases I get a check box for "show solution", but it doesn't seem to function when I check it. I checked the box, and then clicked submit answer. The solution does not appear.

<| Post or View Comments |>


userArnold K. Pizer - Re: Presenting Solutions to Problems  blueArrow
8/21/2001; 9:49:14 PM (reads: 3117, responses: 0)
I just tried this on our "system" version at Rochester (where Don has his course). This version of WeBWorK is very close to, but not identical, the distributed version 1.6. Don is correct, solutions do not work on this version. I assume they do work with a generic 1.6 version of WeBWorK --- can someone confirm this? It would take me a bit of time to build the exact version 1.6 and test this. Solutions do work as advertised in the new version of WeBWorK which hopefully will be released in a few days.

Arnie

<| Post or View Comments |>


userZbigniew Fiedorowicz - Re: Presenting Solutions to Problems  blueArrow
8/22/2001; 7:45:58 AM (reads: 3143, responses: 0)
Hi Arnie,

I can confirm that SOLUTION works under 1.6_04 (except we are running 1.5 version PGanswermacros.pl, and have some minor local modifications). Specifically, I tried it with the Rochester problem setIntegrals19Area/ns6_1_27.pg, which has a SOLUTION section, and it worked.

Zig

<| Post or View Comments |>


userDonald Behan - Re: Presenting Solutions to Problems  blueArrow
9/5/2001; 7:55:55 PM (reads: 3142, responses: 0)
Version 1.7 prints the solution, but it does not recognize the variables with values assigned in the problem. It just prints blanks where these variables are used in the solution. Is there a way to make the values of the variables known to the solution?

<| Post or View Comments |>


userArnold K. Pizer - Re: Presenting Solutions to Problems  blueArrow
9/6/2001; 8:38:57 AM (reads: 3148, responses: 1)
Here is an example taken from setDerivatives2Formulas/s2_2_1.pg.

The variables are displayed correctly in WeBWorK 1.7 for this example.

 

$a1_2 = 2*$a1;
&SOLUTION(EV3(<<'EOT'));
$SOL $BR
In general the derivative of ( x^n ) is ( nx^{n-1} ). Using this (and the
basic sum and constant multiple rules) we find the derivative of $BR
(${a1}x^2 - ${b1}x -$c1 quad ) is $BR ( ${a1_2}x - $b1 ).$BR $BR
EOT

Is the code in your problem similar?

<| Post or View Comments |>


userDonald Behan - Re: Presenting Solutions to Problems  blueArrow
9/6/2001; 2:13:37 PM (reads: 3470, responses: 0)
I had been using EV2. When I changed to EV3 it worked. Thanks.

<| Post or View Comments |>