Hi, Math app questions facilitate a nice automatic 'communication' with the student via MapleTA, concerning e.g. the syntactical correctness of the student's input before evaluation and grading. I have managed to use the try-catch statement on parsed string versions of the students input in startup codes for this purpose, but in simple cases only. The procedure will disclose simple syntax errors (wrong number of parentheses etc.) without creating halting error messages at the student's front end and at the same time allowing the student to reset and correct his/her input. My question is this: Is there a general way to set up a Maple procedure in the startup code which in the same way will take in an expression (including errors) from the student and return - not the error statement, but a last exception type statement, that can then be communicated from the math app startup code in a controlled way to the student to be used effectively for resetting and correcting his/her input? I hope it makes sense? Thank you in advance for any suggestions in this direction! Best, Steen
Posts made by Steen
Handling input errors via startup codes
RE: Using *.mla repositories in MathApps
Thanks for looking into this! Unfortunately we do not (yet) have a local server for MapleTA, but this security issue could be an argument for becoming self-hosted. One way around the concrete problem (without self-hosting, I think) is to embed the needed (if not all) *.mla procedures directly via manual copy-paste into the startup code from the worksheet that defines the *.mla file. But this, of course, is much more cumbersome than the wished-for simple one-line reference to the *.mla file itself.
Your answer, however, then also induces a similar question concerning the use of repository files inside MapleTA itself, as thoroughly explained in:
Admittedly, I did not check this out yet, but the question is, if this functionality also has been depreciated or blocked in the meantime?
Thank you very much in advance!
Using *.mla repositories in MathApps
Hi, I am curious about how to apply commands from an *.mla repository file in the startup code for a MathApp question. I have put a repository file called GEO3.mla into our server folder [https://. . . ./Public_Html/] (which contains all the other material, figures, etc., for our class), so that the full path to the repository file is [https://. . . ./Public_Html/GEO3.mla].
How do I then make sure that a given startup code will be able to find and run the commands in GEO3.mla? I have tried to insert various libname extensions into the head of the startup code, e.g. as follows:
libname := libname, "https://. . . /Public_Html/";
but it does not seem to activate the commands in the repository file when calling them via the MathApp question in MapleTA. Does it require a special type of libname extension or a special location of the *.mla file?
Thank you very much in advance!
RE: MathApp Answers
Yes, of course, thank you very much! My mistake was to think, that everything could be 'driven' from the startup code. I see now that this is neither possible nor in fact necessary when using TA both to set up the variables for the MathApp and to give the precise and individual feedback.
Hi, I am curious about how Answers can be integrated into MathApp questions: How to include them into the startup code (for, say, a randomized homework question) and then, afterwards, how to use them and include them into the individual feedback to the students in connection with the grading, like [you answered . . .] and [the correct answer is . . . ]. The online help indicates, that this is possible, but I have not been able to locate precise directives.
Thank you in advance!