Try to answer the following questions here:

• What is this question used for?
• What does this question assess?
• What does the student have to do?
• How is the question randomised?
• Are there any implementation details that editors should be aware of?

### History

#### Checkpoint description

Describe what's changed since the last checkpoint.

#### Denis Flynn3 years, 8 months ago

Created this as a copy of Pattern matching - factorise an equation.
Pattern matching - factorise an equation Ready to use Christian Lawson-Perfect 23/07/2020 04:49
Tore's copy of Factorise an equation draft Tore Gaupseth 23/01/2015 12:27
Tore's copy of Factorise an equation draft Tore Gaupseth 23/01/2015 12:26
_Pattern matching - factorise an equation (marking script; copy) Should not be used Christoph Walti 09/09/2015 13:50
Pattern matching - student's answer is a fraction Ready to use Christian Lawson-Perfect 30/11/2020 16:21
Pedro A.'s copy of Pattern matching - student's answer is a fraction draft Pedro A. García-Sánchez 05/02/2017 13:01
Factor $x^2+bx+c$ over the integers Ready to use Joseph Mastromatteo 07/12/2018 13:46
Factor $ax^2+bx+c$ over the integers Ready to use Joseph Mastromatteo 05/12/2018 17:04
Denis's copy of Pattern matching - factorise an equation draft Denis Flynn 12/06/2017 01:04
Andrew's copy of Pattern matching - factorise an equation draft Andrew Iskauskas 16/09/2017 00:19
Andrew's copy of Andrew's copy of Pattern matching - factorise an equation draft Andrew Iskauskas 12/07/2018 15:14
Clare's copy of Pattern matching - factorise an equation draft Clare Lundon 19/08/2018 08:59
Factorisation d'un trinôme draft Jeanne Parmentier 02/12/2020 15:42
Deirdre's copy of Pattern matching - factorise an equation draft Deirdre Casey 12/09/2018 14:15
Josh's copy of Pattern matching - factorise an equation draft Josh Lim 01/07/2019 11:55
Pattern matching - factorise an equation draft Xiaodan Leng 11/07/2019 05:18
Factorise a quadratic draft Thomas Waters 03/10/2019 16:00
Michael's copy of Factorise a quadratic draft Michael Proudman 09/10/2019 08:26
Timur's copy of Pattern matching - factorise an equation draft Timur Zaripov 10/10/2019 11:59
Sean's copy of Factorise a quadratic draft Sean Gardiner 28/10/2019 13:12
simplifica 1 draft francisco Glezortiz 26/01/2020 15:20
expresion-1 draft francisco Glezortiz 26/01/2020 15:20
expresion-2 draft francisco Glezortiz 26/01/2020 15:20
Thoan's copy of Pattern matching - factorise an equation draft Thoan Do 21/02/2020 17:49
Yusuf's copy of Pattern matching - student's answer is a fraction draft Yusuf Hafidh 20/07/2020 06:59
Factorise a quadratic (x^2 coeff = 0) draft Mike Robinson 04/08/2020 14:24
Mike's copy of Factorise a quadratic (x^2 coeff ne 0) draft Mike Robinson 04/08/2020 14:19
Pattern matching - factorise an equation draft Dmitri Finkelshtein 06/08/2020 20:11
Pattern matching - factorise an equation draft Michael Proudman 21/09/2020 14:05
Ulrich's copy of Pattern matching - factorise an equation draft Ulrich Görtz 05/02/2021 17:12
Jim's copy of Pattern matching - factorise an equation draft Jim Pettigrew 27/01/2021 19:36
Factorisation of simple quadratic - repeated roots Needs to be tested David Lis 23/02/2021 18:07
Factorisation of quadratics - complex roots Needs to be tested David Lis 23/02/2021 17:43
Factorisation of quadratics - completing the square draft David Lis 23/02/2021 18:28
Factorisation of quadratics - completing the square draft David Lis 23/02/2021 18:29
Factorisation of quadratics - completing the square draft David Lis 24/02/2021 11:27

Give any introductory information the student needs.

No variables have been defined in this question.

#### Warning

• When applying the function,
##### Suggestions
• Change the signature of parameter from to .

This variable is an HTML node. HTML nodes can not be relied upon to work correctly when resuming a session - for example, attached event callbacks will be lost, and mathematical notation will likely also break.

If this causes problems, try to create HTML nodes where you use them in content areas, instead of storing them in variables.

Describe what this variable represents, and list any assumptions made about its value.

← Depends on:
→ Used by:

This variable doesn't seem to be used anywhere.

Name Type Generated Value

#### Error in variable testing condition

There's an error in the condition you specified in the Variable testing tab. Variable values can't be generated until it's fixed.

Error:

for seconds

Running for ...

Name Limit

### Penalties

Name Limit

No parts have been defined in this question.

Select a part to edit.

The correct answer is an equation. Use the accuracy tab to generate variable values satisfying this equation so it can be marked accurately.

#### Checking accuracy

Define the range of points over which the student's answer will be compared with the correct answer, and the method used to compare them.

#### Variable value generators

Give expressions which produce values for each of the variables in the expected answer. Leave blank to pick a random value from the range defined above, following the inferred type of the variable.

#### String restrictions

For each choice, specify the number of marks to add or subtract when the student picks it.

For each choice, write 1 if the student should tick it, or 0 if they should leave it unticked.

You must set a maximum number of marks in order to use this marking method.

You must set a maximum number of marks in order to use this marking method.

For each combination of answer and choice, specify the number of marks to add or subtract when the student picks it.

For each combination of answer and choice, write 1 if the student should tick it, or 0 if they should leave it unticked.

Both choices and answers must be defined for this part.

Help with this part type

#### Test that the marking algorithm works

Check that the marking algorithm works with different sets of variables and student answers using the interface below.

Create unit tests to save expected results and to document how the algorithm should work.

There's an error which means the marking algorithm can't run:

#### Question variables

These variables are available within the marking algorithm.

Name Value

#### Marking parameters

These values are available as extra variables in the marking algorithm.

Name Value

#### Part settings

These values are available as entries in the settings variable.

Name Value

Alternative used:

Note
Value Feedback

Click on a note's name to show or hide it. Only shown notes will be included when you create a unit test.

#### Unit tests

No unit tests have been defined. Enter an answer above, select one or more notes, and click the "Create a unit test" button.

The following tests check that the question is behaving as desired.

### This test has not been run yet This test produces the expected output This test does not produce the expected output

This test is not currently producing the expected result. Fix the marking algorithm to produce the expected results detailed below or, if this test is out of date, update the test to accept the current values.

One or more notes in this test are no longer defined. If these notes are no longer needed, you should delete this test.

Name Value

 This note produces the expected output

This test has not yet been run.

When you need to change the way this part works beyond the available options, you can write JavaScript code to be executed at the times described below.

Run this script the built-in script.

This script runs after the built-in script.

To account for errors made by the student in earlier calculations, replace question variables with answers to earlier parts.

In order to create a variable replacement, you must define at least one variable and one other part.

The variable replacements you've chosen will cause the following variables to be regenerated each time the student submits an answer to this part:

These variables have some random elements, which means they're not guaranteed to have the same value each time the student submits an answer. You should define new variables to store the random elements, so that they remain the same each time this part is marked.

This part can't be reached by the student.

Add a "next part" reference to this part from another part.

None of the parts which can lead to this part are reachable either.

### Next part options

Define the list of parts that the student can visit after this one.

• #### Variable replacements

No variable replacements have been defined for this next part option.
Variable Value

### Previous parts

This part can follow on from:

This part doesn't follow on from any others.

### Parts

#### Steps

Give a worked solution to the whole question.

Select extensions to use in this question.