16 results in Howtos  search across all projects.

Question
There are copious comments in the definition of the function eqnline about the voodoo needed to have a JSXGraph diagram interact with the input box for a part.

Question
The custom function
rectangle(width,height)
draws a rectangle with the given dimensions, along with some labels. 
Question
An allornothing marking scheme for a gapfill part: the student must answer every gap correctly to get all the marks. If any gap is incorrect they get 0 marks for the whole part.

Question
Just showing how to use the stdev function from the stats extension to calculate the standard deviation of a list of numbers.

Question
No description given

Question
Example of displaying a randomly chosen image.

Question
Get the student to upload their experimental data in a CSV file, then ask them to compute statistics on it.

Question
A function which renders the factorisation of a number in LaTeX.

Question
Show a list of the factors of a number.
Works by testing each number up to $n$ for divisibility by $n$, so won't do well with really big numbers. Certainly fast enough for numbers up to 4 or 5 digits.

Question
Some clever variablesubstitution trickery to randomly pick two sides of a rightangled triangle to give to a student, and ask for the other.
The sides are set up so they're always Pythagorean triples, and the opposite side is always odd.
As ever, most of the tricky stuff is in the advice.
Because this was created quickly to show how to set up the randomisation, there's no diagram. It would benefit greatly from a diagram.

Question
Numbas can now understand and use several different styles of notation for numbers.
This question shows off all the supported styles, both for display in text and in the answers to number entry parts.

Question
Show one of several blocks of text depending on the value of a question variable.
As well as a simple check for the value of a variable, the condition to display a block of text can be a complex expression in any of the question variables  in this example, depending on the discriminant of the generated quadratic.

Question
The student is asked to factorise a quadratic $x^2 + ax + b$. A custom marking script uses pattern matching to ensure that the student's answer is of the form $(x+a)(x+b)$, $(x+a)^2$, or $x(x+a)$.
To find the script, look in the Scripts tab of part a.

Question
Shows how to retrieve the student's answer to another part from a custom marking script.

Question
A very simple example of a custom marking script for a "choose one from a list" part

Question
Construct a line through two points in a GeoGebra worksheet. Change the line by setting the positions of the two points when the worksheet is embedded into the question.