[LON-CAPA-users] Illegal division by zero

Rex Abert ABERTR at tcc.fl.edu
Fri May 29 14:33:28 EDT 2015

This *could* happen if the server has multiple CPUs, and the scripts are being run in parallel on different CPUs.  My advice about combining the scripts into one script would fix that, however. 

Rex Abert
Associate Professor of Mathematics
Tallahassee Community College
From: lon-capa-users-bounces at mail.lon-capa.org [lon-capa-users-bounces at mail.lon-capa.org] on behalf of Damien Guillaume [damieng at msu.edu]
Sent: Friday, May 29, 2015 1:50 PM
To: Discussion list for LON-CAPA users
Subject: Re: [LON-CAPA-users] Illegal division by zero

It looks to me like the 2nd script is being executed before the 1st one.
I have no idea how that could happen, but you could check that by
setting a useless variable to a different value in the 2 scripts, wait
for another bomb, and check the value.

If it is the case, you would avoid the bug by defining all the variables
in one script (but please tell us so we can chase the bug).


> Rex,
> Here's the code, I thought it might be easier to cut and paste it in
> construction space to make it easier to debug.  The problem works fine for
> me in construction space.   One student with $f1=1.0 and one student with
> $f1=6.0221e23 have gotten it correct so far.
> [...]
LON-CAPA-users mailing list
LON-CAPA-users at mail.lon-capa.org

More information about the LON-CAPA-users mailing list