Describe what this question assesses, or how it is going to be used.

### History and Feedback

#### Checkpoint description

Describe what's changed since the last checkpoint.

#### Violeta CIT11 months, 1 week ago

Created this as a copy of Inner product of two vectors.
Inner product of two vectors draft Newcastle University Mathematics and Statistics 01/06/2016 11:17
Vectors 4 (dot product) draft Violeta CIT 10/11/2017 15:44
Vectors 4 (dot product) draft Violeta CIT 15/11/2017 15:28
Violeta's copy of Vectors 4 (dot product) draft Violeta CIT 15/11/2017 15:23
Inner product of two vectors draft steve kilgallon 21/11/2017 14:18
Harry's copy of Inner product of two vectors draft Harry Flynn 09/03/2018 14:42
Harry's copy of Inner product of two vectors draft Harry Flynn 09/03/2018 14:43

Give any introductory information the student needs.

No variables have been defined in this question.

(a number)

Numbers between and (inclusive) with step size
A random number between and (inclusive) with step size

(text string)

(numbers)

(text strings)

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.

Name 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 ...

No parts have been defined in this question.

Select a part to edit.

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

#### String restriction

Both choices and answers must be defined for this part.

Help with this part type

##### Base marking algorithm

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

Name Value

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.

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.

### Parts

Give a worked solution to the whole question.

### Preamble

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.

This question is used in the following exam: