WeBWorK Main Forum
https://webwork.maa.org/moodle/mod/forum/view.php?f=2
The wiki and forum systems have changed encryption methods and some passwords need to be reset. If you can't login: first set (or reset) your password on the wiki (you can use the "forgot password" link). Make sure to complete the process to set a "new" permanent password. Then use that permanent password for moodle as well as the wiki.
Questions and comments regarding day-to-day use of WeBWorK.Moodleen(c) 2020 WeBWorK: Online homework for math and sciencehttps://webwork.maa.org/moodle/theme/image.php/classic/core/1584125254/i/rsssitelogomoodle
https://webwork.maa.org/moodle
14035Re: Formatting numbers -- using commas as thousands-separator
https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4908&parent=14812
Sat, 19 Sep 2020 23:52:26 GMTby Alex Jordan. <p><p>Yes, there is this:</p><p>https://webwork.maa.org/wiki/EquationEvaluators</p><p>Some care/awareness is needed to use this. It works by choosing random (x,y) values (or however many variables are in the context) and using a kind of Newton's method to converge toward tuples that solve the equation. And it sees if the same convergence happens for the student answer. There are kinds of equations where that just won't work. See the details in the commentary at:</p><p>https://github.com/openwebwork/pg/blob/master/macros/parserImplicitEquation.pl</p><p><br /></p></p>https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4908&parent=14812Re: Forcing students to submit a gateway quiz when time expires
https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4079&parent=14811
Sat, 19 Sep 2020 21:54:56 GMTby Alex Jordan. <p><div class="text_to_html">Look in:<br />
lib/WeBWorK/ContentGenerator/GatewayQuiz.pm<br /><br />
and search for this:<br />
You are out of time.<br /><br />
You want to trigger submitting the form when the time runs out. (And only submitting the form once.)</div></p>https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4079&parent=14811Re: Formatting numbers -- using commas as thousands-separator
https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4908&parent=14810
Sat, 19 Sep 2020 21:50:58 GMTby Gabor Lukacs. <p><div class="text_to_html">Thank you so much, Alex, for the detailed answer.<br /><br />
Is there a context for equations, that is, a context that can treat expressions like "2*x-y=2" and is capable of identifying it is with "-2*x+y=-2" and "2*x -y-2=0"?</div></p>https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4908&parent=14810Re: Forcing students to submit a gateway quiz when time expires
https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4079&parent=14809
Sat, 19 Sep 2020 21:46:14 GMTby Alex Jordan. <p><p>> "Possibly the more common scenario is a user closing the browser prematurely. "<br />
I don't think so, I think the greater danger is that a student is
unaware of how much time has passed, wants to work to the very last
second, and fails to submit in time.</p><p>That could be. The reason I think it may go the other way is that there is a popup alert when you are getting close to time ending. Multiple, actually. I forget when the times are, but maybe 2 minutes out, 30 seconds out, and again at t=0. And even then, there is a secret 2 minute grace period where you can still hit Submit and get credit. So a student who is still there would have to be ignoring or not seeing these alerts. Which is of course possible.<br /></p></p>https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4079&parent=14809Re: Formatting numbers -- using commas as thousands-separator
https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4908&parent=14808
Sat, 19 Sep 2020 21:11:41 GMTby Alex Jordan. <p><p>The short answer is, yes.</p><p>A Context is a hash containing information about how MathObjects should be handled. When you create a MathObject (a Formula, a Real, a Currency, etc), that MO itself is a hash that has a reference to a Context (usually the Context that was active at the time the MO was created). For one thing, you can modify that Context mid-problem. Just understand that the MO may be handled differently depending on where in the problem code these things are happening.</p><p>Then you can also make new Contexts, changing the active Context. Contexts that were created earlier still exist, and their MathObjects still point to them. </p><p>You can have multiple Contexts that are "the same". Meaning, they are different hashes, but have all the same properties.</p><p>Example:</p><p>Context("Numeric"); # Context "A"<br />Context()->flags->set(reduceConstants=>0); # modifies Context "A"<br />$f = Formula("1/2 x^2"); # f is in Context "A"<br /><br />Context("Numeric"); # Context "B"<br />$g = Formula("1/2 x^2"); # g is in Context B</p><p>$r = $f->eval(x=>2); # $r is a Real in Context "A"<br />$s = $g->eval(x=>2); # $r is a Real in Context "B"<br />$r = Real($r); # now $r is a Real in Context "B"</p><p># Printing $f right now in math mode will make `\frac{1}{2} x^2`, because it is in Context "A"<br /># Printing $g right now in math mode will make `0.5 x^2`, because it is in Context "B"<br /># Similarly, any context settings that affect answer checking could affect assessing student answers for $f and $g<br /></p></p>https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4908&parent=14808Re: Forcing students to submit a gateway quiz when time expires
https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4079&parent=14807
Sat, 19 Sep 2020 21:06:41 GMTby Andrew Dabrowski. <p><div class="text_to_html">Where in the repo would the code go that handles this?</div></p>https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4079&parent=14807Re: Forcing students to submit a gateway quiz when time expires
https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4079&parent=14806
Sat, 19 Sep 2020 21:05:54 GMTby Andrew Dabrowski. <p><div class="text_to_html">"Possibly the more common scenario is a user closing the browser prematurely. "<br />
I don't think so, I think the greater danger is that a student is unaware of how much time has passed, wants to work to the very last second, and fails to submit in time.</div></p>https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4079&parent=14806Re: Formatting numbers -- using commas as thousands-separator
https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4908&parent=14805
Sat, 19 Sep 2020 20:12:28 GMTby Gabor Lukacs. <p><div class="text_to_html">Thank you, Alex. This is exactly what I was looking for.<br /><br />
I wonder, is there a way to change contexts mid-question? If I need one context in part (a) of the question, and a different one (say Numeric / expressions with real variables) in part (b)?</div></p>https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4908&parent=14805Re: finding the max number of allowed attempts in a problem
https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4907&parent=14804
Sat, 19 Sep 2020 19:52:46 GMTby Joseph Maher. <p><p>I just added an extra var</p><p>$envir{maxAttempts} = $problem->max_attempts;<br /></p><p>in webwork2/lib/WeBWorK/PG.pm</p><p><br /></p><p>Joseph</p><p><br /></p><p><br /></p></p>https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4907&parent=14804Re: Formatting numbers -- using commas as thousands-separator
https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4908&parent=14803
Sat, 19 Sep 2020 19:24:39 GMTby Glenn Rice. <p><div class="text_to_html">Yeah. The documentation is hosted at https://demo.webwork.rochester.edu, and needs to be migrated to the webwork.maa.org server I think. For now, start by going to https://webwork.maa.org/wiki/Authors and clicking on the POD link there, and those take you to the Rochester server.</div></p>https://webwork.maa.org/moodle/mod/forum/discuss.php?d=4908&parent=14803