Feature Requests item #809789, was opened at 2003-09-20 11:49
Message generated for change (Comment added) made by monks
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=439482&aid=809789&group_id=44411
Category: None
Group: None
Status: Open
Priority: 5
Submitted By: Ken Monks (monks)
Assigned to: Nobody/Anonymous (nobody)
Summary: validation using user-defined string types
Initial Comment:
In some situations, it is desirable to have students input
their answer in a notation that cannot be parsed as a
valid Maple expression. In these situations it would be
useful to be able to specify a Maple type other
than "string" at the c> flag in a question, but still
prevent AiM from trying to parse the student's answer.
For example, when asking a student for an answer that
is type RepeatingDecimal (see the Decimal package) we
must specify the Maple type as string to prevent AiM
from trying to parse it. What would be better is to
specify it something like
c> string,RepeatingDecimal
which would tell AiM to not parse the student's answer
string, but to check if that answer string matches the
Maple type RepeatingDecimal when validating it.
----------------------------------------------------------------------
>Comment By: Ken Monks (monks)
Date: 2004-01-18 18:31
Message:
Logged In: YES
user_id=766386
I have implemented this with the syntax String(mapletype),
where mapletype is a Maple type. However, this is only a
partial quickie solution. A better solution would be to be able
to specify the VProc at the c> flag in a manner similar to
what is done for the MProc at the s> flag, i.e. to allow syntax
of the form:
c> [validationproc,parserproc]
where validation proc is either a proc or a Maple type that
validates the students rawanswer as string, and parserproc
parses the rawanswer (as a string) into a Maple expression, it
would solve all of the problems related to this topic and we
wouldn't need these workarounds.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=439482&aid=809789&group_id=44411
|