### Member List

 jmtrik S spaul J JHK L LSwain M mlasher D DSmith12 B Bryon Thur swinkler Anatoly J jordanmoodie R Robert Stanyon J jzivku aron
• RE: Linked answer boxes in the HTML question type

posted in Best Practices
• RE: Significant figures

Hi cmcneile,

One solution to this would be to hold the answer in a variable. For example to calculate power = energy/time we could use variables such that $P =$E/$T. In the response area (assuming you are using numeric) you can then set "Required with" to "absolute accuracy". If you are using randomisation such that$P would be to more than two significant figures you can use the command "decimal(n,x)" in the algorithm section where x is the input and n is the number of decimal places. In this case it would be decimal(2,\$P).

Hope this helps.

posted in Need help? Ask here!
• RE: H5p elements integrated in HTML5 question

Hi Meta,

It seems that they have an iframe embedder feature, so it's pretty much copy-paste of their source code into source code of a Mobius question. I've attached a TA question with one of their demos as an example: Example.zip

Cheers,
Anatoly

posted in Need help? Ask here!
• RE: Grading equations in a specific form

@mrs.sarah.chan

Hi!

If you're comfortable with Maple programming language, you can try 'inert form'. It will allow you to grade student response in its original form, without simplifications. Click here for an example.

Alternatively, you can convert the response to "string" and use string tools to check if the expression contains (the right number of) brackets, this should allow you to identify the expression type. I'm thinking alongs the lines of: student answer is equal to the correct answer AND the number of "(" brackets is right.

With regards to "y=" part. It's hard to say without the actual grading code. You could try to pull the the equation apart with use of lhs and rhs commands. For example,  "y= a + b"  would give you "y" and "a+b" respectively. This should allow you to grade equation in two parts without equation comparisons.

When assigning variable names to the equations (Maple syntax) I often forget to use ":", for example: "my_equation = y = a+b" instead of "my_equation := y = a+b". This  leads to similar error messages.

Good luck!

Anatoly

posted in Question Creation
• RE: MathApps with æ, ø, å in TextArea Components

Hi @Steen

I must admit this problem is a little beyond my realm of understanding however the support team at support@digitaled.com should be able to help you with this.

Best

David

posted in Question Creation
• Fix HTML blank issues in TA/Mobius translations

MapleTA and Mobius sets the UI language based on the browser locale: language. For example Firefox set to French, will show TA/Mobius interface in French.

Issue: the unanswered HTML blank set the variable response to "No answer", but! it gets translated

function setFeedback(response, answer){
if (response == "No answer" && answer == null) {
/* not yet attempted  */
run([], 1);
} else if (answer == null) {
/* previously attempted */
run(response, 2);
} else if (answer != null) {
/* show correct answer in the gradebook */
}
};


Fix:

function setFeedback(response, answer){
var translations = ["No answer","Sin respuesta", "未解答", "Aucune réponse", "Keine Antwort", "Καμία απάντηση", "Nessuna Risposta", "解答なし", "답변 없음", "Brak odpowiedzi", "Sem resposta"];
if (translations.indexOf(response) >= 0 && answer == null) {
/* not yet attempted  */
run([], 1);
} else if (answer == null) {
/* previously attempted */
run(response, 2);
} else if (answer != null) {
/* show correct answer in the gradebook */
}
};


Some background for this:

HTML blank has the following states:

• Assignment: not answered, first attempt
• Assignment: not answered, not the first attempt (student browsed to a different question and came back)
• Assignment: answered, not the first attempt (student browsed to a different question and came back)
• Preview: not answered, first attempt

App can determine the state using the following variables:

• interactiveMode
• response

interactiveMode is true when question is either opened in the assignment or in the preview.

response is either “No answer” (and translations), null or whatever your app returns with getResponse(). response is set to null when app is opened in the grade book to show the correct answer. In all other cases it's either "No response" (or translation) or whatever was previously returned with getResponse(). In the assignment, response is initialized with “No response” both on the first attempt as on every revisit of the question as long student didn’t interact with the app causing getResponse() to be called.

answer is either null or whatever is set in the Correct-field of the blank.

In the gradebook app is run twice, one for the left and one for the right pane. Apps are run in two separate iframes and cannot be interconnected easily.

posted in Quick Code Snippets
• RE: Handling input errors via startup codes

Hi @steen. Do you have a minimal example of a math app that you want this for. I think this is possible if you deal with everything as strings and use try/catch. We had some luck parsing maple errors a few weeks ago so that might be useful to you, but I need to understand the exact use case a little more.

posted in Question Creation
• RE: Sketch graph where student defines axis

@Grapheur If you are grading manually would a scanned document(i.e. file upload) question type work? If this is not what you are looking for, please could you provide more details on how the students would enter information into the graph?

posted in Question Creation
• RE: Laplace questions

@Metahofzicht There are a few questions in this course module for Intro to Control Systems. IntroToControlSystems.zip

posted in Content Sharing