XDOC examples
WARNING: Mozilla 1.5 crashes on some of these examples. I'm
trying to track down what is breaking it. Meantime, stay with Mozilla
1.4 -- Hal (Sep. 1)
Here are some examples of 6.002x problems that written using XDOC.
They show what kinds of things need to be implemented.
Remember to check
that your browser handles MathML before trying these.
- circuit1.xdoc is a simple
fill-in-the-blanks question.
- christmas-lights.xdoc
has both fill-in and multiple choice
- system-functions.xdoc
shows use of MathML. Also has matching problems, which needs a
scoring procedure that requires all matches to be correct in order to
indicate a correct response.
- ce-analysis.xdoc
First part of amplifier design problem set, before we move to the
actual design part, with the intelligent book.
- weighted-sums.xdoc
Demonstrates the need for a verification procedure that looks at all
of the values together.
Some problems:
- These pages don't seem to work with IE, which barfs at the xdoc
document type. Is there a mime-type missing here, or something? Oris
this real Redmond brain death?
- The current tag writes the expected answer as an xml comment,
so anyone looking at the page source can see the expected answer.
- The answer tags aren't doing the right thing, either in
formatting or in checking. These need to be redesigned. Chris and I
should talk about this.
- Here is a link that should work, but doesn't always:
pset-examples/circuit1.xdoc.
The problem happens when you are reaching the current page using the url
http://www.swiss.ai.mit.edu/projects/scheme-pages/hal/for-6002x
without a trailing
slash. In this case, the generated link is missing the
for-6002x part of the name.
Is this a problem with scheme-pages?
- We need a more flexible way to specify tolerances on numeric
answers. For example, we should be able to specify relative tolerances.
- Need a make-random-state procedure that uses the user-id as the
seed, so logging in twice gives the same random values.