666 results authored by Christian Lawson-Perfect - search across all users.
-
Question in DemosThe student is asked to add two four-digit numbers. Alternative answers are set up with progressively expanding ranges of accepted values, so the student gets more marks for getting closer to the true answer.
-
Question in Christian's workspace
A sneak peek at a really clever integration of GeoGebra with Numbas.
-
Question in How-tos
An example of using the GeoGebra extension to ask the student to create a geometric construction, with marking and steps.
-
Question in How-tos
This question contains a "choose several answers" part which has an "all-or-nothing" mark scheme: the student is only awarded marks if they tick all of the correct choices, and no incorrect choices.
-
Question in How-tos
Display a number as a mixed fraction when appropriate, using the mixedFractions display option.
-
Question in How-tos
The function randexp, provided by an extension, generates a random string matching the given regular expression.
-
Question in How-tos
Update: you can now use the conditional visibility button to do this more easily - see the documentation.
If the statement or advice for your question differs greatly depending on a random variable (for instance, if you're picking from a selection of scenarios), you only want to show content for the relevant scenario.
This question shows one way of doing that.
-
Question in How-tos
This question is out of date: use the currency function instead.
-
Question in How-tos
Display a number like "1234" as "1,234".
This question is out of date: the formatnumber function can format numbers using several different notational styles.
-
Question in How-tos
Use the numbro.js extension to format numbers and currencies.
-
Exam (1 question) in Christian's workspaceThis exam shows that the worksheet theme now includes the introduction text in each copy of the exam.
-
Question in How-tos
The custom function
rectangle(width,height)draws a rectangle with the given dimensions, along with some labels. -
Question in Christian's workspace
Write down the Newton-Raphson formula for finding a numerical solution to the equation $e^{mx}+bx-a=0$. If $x_0=1$ find $x_1$.
Included in the Advice of this question are:
6 iterations of the method.
Graph of the NR process using jsxgraph. Also user interaction allowing change of starting value and its effect on the process.
-
Exam (3 questions) in Transition to university
Apply formulas to calculate the areas of various shapes.
-
Question in How-tosThis question generates two variables, a and b. They're chosen to be distinct, and neither takes the value zero.
-
Question in Quantities extension
Given mass and volume of an object in SI units, calculate its density. The units are given at different orders of magnitude.
-
Question in Demos
No description given
-
Question in Demos
No description given
-
Exam (4 questions) in Demos
No description given
-
Question in Demos
Give the student three points lying on a quadratic, and ask them to find the roots.
Then ask them to find the equation of the quadratic, using their roots. Error in calculating the roots is carried forward.
Finally, ask them to find the midpoint of the roots (just for fun). Error is carried forward again.
-
Question in Demos
Ask the student to find a matrix corresponding to a given rotation about the origin.
Then ask them to find the determinant. Their answer is marked against the matrix they gave, not just the correct one.
Finally, ask them to find the inverse of their matrix. Marking is against the matrix and determinant they gave.
-
Exam (3 questions) in Demos
Some questions which demonstrate the adaptive marking feature.
-
Question in How-tos
Just showing how to use the stdev function from the stats extension to calculate the standard deviation of a list of numbers.
-
Question in How-tos
The student must enter a number in scientific notation, with separate boxes for significand and exponent. They only get the marks if both elements are correct.
-
Exam (3 questions) in How-tos
These questions show how to use JSON data to represent structured information.
-
Question in How-tos
Create a list of records for randomly-generated people. Each record contains the person's name, age, and list of hobbies.
The names and hobbies are generated from JSON data.
-
Question in How-tos
A function which renders the factorisation of a number in LaTeX.
-
Question in How-tos
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 in How-tos
Choose from one of several pre-defined scenarios, and set variables to the corresponding values, defined in lists.
This question has three variables:
city,population, andpercent_like_chocolate. These differ for each city. We've defined a list for each variable, with the corresponding values. A variable calledscenariopicks a random position in the list, so the value ofcity, for example, iscities[scenario]. -
Question in How-tos
Some clever variable-substitution trickery to randomly pick two sides of a right-angled 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.