161 results in How-tos - search across all projects.
-
Question
This question shows how to use the question's JavaScript preamble to request data from an external source, and use that data in question variables.
Note that this means the question only works when the external source is available. Use this very carefully, and avoid it if you possibly can!
-
Question
This question shows how explore mode can be used to loop through several versions of the same question. The variables for each version are stored in a list of "scenarios", and a counter works through that list each time the student moves on to the next part, labelled "try the next version of this question".
-
Question
Shows that you can embed a 3D GeoGebra applet in a content area.
-
Question
The student is shown a passage of code in the prompt to a "choose several from a list" part.
-
Question
A random proper fraction $a/b$ with denominator in the range 2 to 30 is picked, and the student must write $\frac{a}{b} \pi$.
The point of this question is to demonstrate that the correct answer is shown as a multiple of $\pi$ rather than a decimal.
-
Question
The number entry part in this question has an alternative answer which is marked correct if the student's number satisfies an equation specified in the custom marking algorithm.
-
Question
A custom marking algorithm picks out the names of the constants of integration that the student has used in their answer, and tries mapping them to every permutation of the constants used in the expected answer. The version that agrees the most with the expected answer is used for testing equivalence.
If the student uses fewer constants of integration, it still works (but they must be wrong), and if they use too many, it's still marked correct if the other variables have no impact on the result. For example, adding $+0t$ to an expression which otherwise doesn't use $t$ would have no impact.
-
Question
Should not be used: this relies on a custom JavaScript which is not guaranteed to continue working.
Wrap the student's answer in
set()so it's marked as a set. -
Question
The answer to this question is a differential equation involving $y''$, $y'$ and $y$.
A variable value generator for $y$ ensures that the right values are tested to check that the student's answer is equivalent to the expected equation.
-
Question
This question includes a JavaScript preamble which defines 'hbar' as a special variable name to be rendered in LaTeX as \hbar.
-
QuestionThis question demonstrates how to use the \simplify command to create natural-looking randomised mathematical expressions.
-
Question
A line with random $x$- and $y$- intercepts is plotted, and you have to drag two dots over the points where the line crosses the $x$ and $y$ axes.
-
Question
Shows how the "decimal" data type can represent very small numbers with more precision than the default "number" data type.
-
Question
The student is given a number in base 10 and asked to write it in a given base, between 2 and 16. The number has at most 3 digits in the other base.
Until it's possible to derive the expected answer for a part in the marking algorithm (see the issue tracker), this question has "show expected answer" turned off, because it just shows the base 10 number.
-
Question
A couple of different ways of showing the correct answer to a single part as soon as the student submits an answer. One way allows the student to change their answer, while the other locks the part.
A third part includes a "reveal answers to this part" button, which allows the student to choose to reveal the answer to the part.
Think very carefully before using this: by revealing the answer, you are removing the opportunity for the student to later on realise they've got that step wrong, as a consequence of some further work. It's often possible to use adaptive marking to use the student's answer in place of the correct answer in later parts.
-
Question
This question shows how to pick a GeoGebra worksheet to show to the student from a list, based on the value of a question variable.
-
Question
Given an ascending sequence of numbers, finds the index in the sequence of the first number greater than or equal to a given value.
-
Question
Obosolete: there's now a built-in function
sort_by.Defines a custom function sort_by to sort a list of lists by the elements at the given index.
You could do a similar thing to sort lists of dictionaries.
-
Question
Because JavaScript numbers lose precision as they get bigger, you get some unexpected results.
See the variable "two" - the difference should be 2, but because the JavaScript representation of each of the two numbers is the same, it thinks the difference is 0.
Using the decimal data type, there's no loss of precision, so the correct value is produced.
-
Question
Pick from the range -5..5, but make 0 more likely.
-
Question
Demonstrates how to set up a "choose one from a list" part where the number of choices is randomised.
The part is given a list of labels for the choices as well as a list specifying the marks to award for each choice.
-
QuestionThis question shows that you can set the number of marks available for a part to a fraction. The total available for the question is 1 mark.
-
Question
A short demonstration of when the basic simplification rules are turned on, or off.
-
Question
Shows how the \text command is rendered using the plain-text font, not the LaTeX one. Useful for displaying units of measurement and English words inside equations.
-
QuestionThe statement of this question demonstrates how you can control the \simplify command's behaviour by specifying the rules to use.
-
Question
Should not be used: there's now a built-in function
frequencies.This question randomly generates a list of 100 items, each chosen from a list of strings.
It then computes the number of occurrences of each distinct item in the list. The statement shows the frequencies in a table.
-
Question
This question uses the vis.js library to plot 3D functions and data sets.
As well as JME functions to make plots, you can use javascript functions to get more control over how the plots are rendered.
-
Question
No description given
-
Question
No description given
-
Question
This question shows how to load a GeoGebra applet from geogebra.org.