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?

### Feedback

From users who are members of Transition to university :

From users who are not members of Transition to university :

### History

#### Checkpoint description

Describe what's changed since the last checkpoint.

#### Christopher boyd6 years, 6 months ago

Gave some feedback: Ready to use

#### Chris Graham6 years, 11 months ago

Gave some feedback: Ready to use

#### Christian Lawson-Perfect6 years, 11 months ago

Gave some feedback: Ready to use

#### Christian Lawson-Perfect6 years, 11 months ago

Saved a checkpoint:

Made sure neither of the points lies on the $y$-axis.

Split $a$ into two parts, since you need to work out the gradient before you find the $y$ intercept.

Reworded some of the advice a bit.

#### Chris Graham6 years, 11 months ago

Gave some feedback: Needs to be tested

#### Chris Graham commented 6 years, 11 months ago

This was a bit of a mess, as the points A and B had originally been illogically ordered, and this had only been half fixed.

Part a) had mathematical expression gaps which should have been number entry, and I have added fractionNumbers simplification in the advice and displayed answer.

I've adjusted the axis ranges so that the intercept is always on the grid.

#### Chris Graham commented 7 years ago

The points A and B should be switched; it doesn't make sense to describe the leftmost point as B, and in fact the gradient is calculated from A to B in the advice. There are places in the advice where $y_1-y_2$ needs to be inverted.

#### Chris Graham7 years ago

Gave some feedback: Has some problems

Published this.

#### Chris Graham commented 7 years ago

RE the point below from Aiden, this is OK, it is giving the student the opportunity to explore the terms in the equation and how they relate to the graph. This sort of question is really for formative use.

#### Aiden McCall commented 7 years ago

This is also true for all other questions of this nature.

#### Aiden McCall7 years ago

Saved a checkpoint:

I have edited the main and advice to make sense and tweaked parts. There is a problem with the question that where you put y = mx +c you can write m in the gap fill and even when restricting the string it shows what m is on the graph so you can effectively 'cheat' this also works in the same way if you type in c. I cannot think of a way to fix this without the JSXgraph code and I don't know where abouts that is.

Gave some feedback: Needs to be tested

#### Bradley Bush commented 7 years ago

Thank you for the feedback Chris, I have done everything you've suggest4ed here as well as making the same changes to differenet versions of this question.

#### Chris Graham commented 7 years ago

One more. If I do not attempt the question, but reveal the answers, then the advice refers to an absent green line. This is another good reason to put the correct plot in the advice.

#### Chris Graham commented 7 years ago

Similar points to our earlier discussion:

This is a candidate for using the Numbas variables to set the jsxgraph axis limits. Move the block of code where you grab the Numbas variables in front of making the board, so that you have access to them. And then you can use them in the bounding box definition boundingBox:[yb-2,...] or whatever is sensible. Don't forget you'll want the intercept to be on the board.

Since you are only asking for the equation of the straight line through the points, you might consider creating a step with gapfills for the gradient and intercept, to allow the student to break the question down.

And you could add a second plot with the solution to the advice.

One final thing: on one run I had B at the origin. You may wish to avoid this as it makes parts of the advice obsolete.

#### Chris Graham7 years ago

Gave some feedback: Has some problems

Gave some feedback: Needs to be tested

Created this.
Find the equation of a line through two points - positive gradient Ready to use Bradley Bush 03/02/2021 13:59
Find the equation of a line through two points - negative gradient Ready to use Bradley Bush 03/02/2021 13:59
Find the equation of a line through two points - zero gradient Ready to use Bradley Bush 03/02/2021 13:59
Straight line equation application: measuring sunflower height Ready to use Bradley Bush 03/02/2021 13:59
Louise's copy of Find the equation of a line through two points - positive gradient draft Louise Lynch 26/01/2022 19:48
Find the equation of a line through two points - positive gradient draft Mark Hodds 03/02/2021 13:59
Ida's copy of Find the equation of a line through two points - positive gradient draft Ida Landgärds 03/02/2021 13:59
Spørsmål 1 draft Ida Landgärds 03/02/2021 13:59
Marte's copy of Find the equation of a line through two points - positive gradient draft Marte Bråtalien 03/02/2021 13:59
Thomas's copy of Find the equation of a line through two points - negative gradient draft Thomas Strasser 03/02/2021 13:59
Equation de droite Needs to be tested Alain Virouleau 30/05/2019 18:52
Linear Equations - Find the equation of a line through two points draft Paul Hancock 03/02/2021 13:59
Find the equation of a line through two points - positive gradient [L3] Needs to be tested Matthew James Sykes 03/02/2021 13:59
Beer Lambert Law Doesn't work Matthew James Sykes 03/02/2021 13:59
Beer Lambert Law Working Back up Should not be used Matthew James Sykes 03/02/2021 13:59
Joël's copy of Find the equation of a line through two points - positive gradient draft Jo Cohen 03/02/2021 13:59
Beer Lambert Law Working Back up Should not be used Matthew James Sykes 03/02/2021 13:59
Ida's copy of Spørsmål 1 draft Ida Landgärds 09/01/2023 10:54
David's copy of Straight line equation application: measuring sunflower height draft David Rickard 03/02/2021 13:59
equation of a line through two points draft heike hoffmann 03/02/2021 13:59
Luis's copy of Find the equation of a line through two points - zero gradient draft Luis Hernandez 03/02/2021 13:59
Simon's copy of Equation of a line through two points - positive gradient draft Simon Thomas 03/02/2021 13:59
Maria's copy of Simon's copy of Equation of a line through two points - positive gradient draft Maria Aneiros 03/02/2021 13:59
Maria's copy of Find the equation of a line through two points - negative gradient draft Maria Aneiros 03/02/2021 13:59
Heather's copy of Find the equation of a line through two points - positive gradient draft Heather Driscoll 03/02/2021 13:59
Equation of a line through two points - positive gradient draft Heather Driscoll 03/02/2021 13:59
Equation of a line through two points draft Philip Charlton 03/02/2021 13:59
Find the equation of a line through two points - zero gradient draft Xiaodan Leng 03/02/2021 13:59
Equation of a line through two points - positive gradient draft Xiaodan Leng 03/02/2021 13:59
Straight line equation application: measuring sunflower height draft Adelle Colbourn 03/02/2021 13:59
Musa's copy of Find the equation of a line through two points draft Musa Mammadov 01/08/2022 08:15
Find the equation of a line through two points - positive gradient Ready to use Simon Vaughan 03/02/2021 13:59

There are 98 other versions that do you not have access to.

Give any introductory information the student needs.

Name Type Generated Value

#### Error in variable testing condition

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

Error:

for seconds

Running for ...

No variables have been defined in this question.

This variable was automatically created because there's a reference to it somewhere 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.

### Generated value:

:
← Depends on:
→ Used by:

This variable doesn't seem to be used anywhere.

Name Limit

### Penalties

Name Limit

No parts have been defined in this question.

Select a part to edit.

This gap is not used in the parent part's prompt.

The student will not be able to enter an answer to this gap.

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:

This is an extension type part. There is no expected answer, and it's assumed that the marking depends on interactions within the part's prompt.

You can test this part's marking algorithm by interacting with the rendering of the part's prompt below.

Score:

#### 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

##### Warnings:

Alternative used:

These are the notes produced by this part's marking algorithm.

Note Value Feedback

Click on a note's name to show or hide it.

#### 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

 Note This note produces the expected output Messages No feedback messages. Warnings No warnings. Messages A difference in feedback messages does not cause this test to fail. No feedback messages. Warnings A difference in warnings does not cause this test to fail. No warnings.

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.

### to

Choose a type for this new .

Give a worked solution to the whole question.

Select extensions to use in this question.

Define rulesets for simplification and display of mathematical expressions.

### Functions

Define functions to use in JME expressions.

Select a function to edit.

No functions have been defined in this question.

Name Type
of
Output type

## Built-in constants

Tick the built-in constants you wish to include in this question.

## Custom constants

You can define constants in terms of the built-in constants, even if they're disabled.
Names Value LaTeX

Add styling to the question's display and write a script to run when the question is created.

This script will run after the question's variable have been generated but before the HTML is attached.
Apply styling rules to the question's content.

Use this tab to check that this question works as expected.

There was an error which means the tests can't run:

Part Test Passed?
Hasn't run yet Running Passed Failed
• :

This question is used in the following exams: