| • | Distance a wheel has travelled = Circumference of the wheel x Motor Rotations |
| • | Average light intensity = (Colour Sensor 1 (Ambient Light Intensity) + Colour Sensor 2 (Ambient Light Intensity)) divided by 2 |
| • | Closest object = Minimum value of Ultrasonic Sensor 1, Ultrasonic Sensor 2, and Ultrasonic Sensor 3 |

| New Dataset | Formula |
|---|---|
| Distance a wheel has travelled (assuming 17.5 cm circumference) | Motor_Rotation _pB *17.5 |
| Average Light Intensity of two Colour Sensors | Avg(Color_Sensor_p3; Color_Sensor_p2) OR (Color_Sensor_p3 + Color_Sensor_p2) / 2 |
| Closest object | Min(Ultrasonic_Sensor_pB; Ultrasonic_Sensor_pC; Ultrasonic_Sensor_pD) |
| Function Name | Function term | Definition |
|---|---|---|
| Add | + | Add a constant or another dataset to the original |
| Subtract | - | Subtract a constant or another dataset from the original |
| Multiply | * | Multiply a dataset by a constant or another dataset |
| Divide | \ | Divide a dataset by a constant or another dataset |
| Absolute Value | Abs | Returns the absolute value of the specified number |
| Average | Avg | Returns the average value of all the specified datasets |
| Floor | Floor | Returns the largest whole number less than or equal to the specified number |
| Ceiling | Ceil | Returns the smallest whole number greater than or equal to the specified number |
| Minimum | Min | Returns the smaller of the specified set of numbers |
| Maximum | Max | Returns the larger of the specified set of numbers |
| Round | Round | Returns the number nearest the specified value |
| Square Root | Sqrt | Returns the square root of the specified number |
| Sine | Sin | Returns the sine of the specified number |
| Cosine | Cos | Returns the cosine of the specified number |
| Tangent | Tan | Returns the tangent of the specified number |
| Inverse Tangent2 | Atan2 | Returns the angle whose tangent is the quotient of two specified numbers |
| Natural Logarithm | Ln | Returns the natural logarithm of the specified number |
| Common Logarithm | Log | Returns the base 10 logarithm of the specified number |
| Derivative | Slope | Measures how the specified function changes as its input changes |
| 0 seconds | 10 seconds | 20 seconds | 30 seconds | |
|---|---|---|---|---|
| Motor Rotations, Port B | 0 | 1 | 3 | 4 |
| Motor Rotations, Port C | 0 | 2 | 5 | 7 |
| 0 seconds | 10 seconds | 20 seconds | 30 seconds | |
|---|---|---|---|---|
| Average Motor Rotations | 0 | 1.5 | 4 | 5.5 |
| Motor Rotations, Port B + Motor Rotations, Port C | 0 | 3 | 8 | 11 |
| Motor Rotations, Port B * 1.5 | 0 | 1.5 | 4.5 | 6 |