> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ntop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Subtract

<CardGroup cols={2}>
  <Card title="Integer, Integer" href="#integer-integer" />

  <Card title="Scalar, Scalar" href="#scalar-scalar" />

  <Card title="Scalar Field, Scalar Field" href="#scalar-field-scalar-field" />

  <Card title="Temperature, Scalar" href="#temperature-scalar" />

  <Card title="Temperature, Temperature" href="#temperature-temperature" />

  <Card title="Temperature Field, Scalar Field" href="#temperature-field-scalar-field" />

  <Card title="Temperature Field, Temperature Field" href="#temperature-field-temperature-field" />

  <Card title="Vector, Vector" href="#vector-vector" />

  <Card title="Vector Field, Vector Field" href="#vector-field-vector-field" />

  <Card title="2D Vector Field, 2D Vector Field, 5.31.0" href="#2d-vector-field-2d-vector-field-5310" />
</CardGroup>

***

## About this Block

**What it does:** The **Subtract** block returns the result of the first input minus the second input ($A - B$).

**Common uses:**

* Defining custom equations for implicit geometry or field-driven design.
* Reducing a property by a specific constant or variable.
* Calculating the relative distance or displacement between two points or vectors.

**Tips:**

* Unlike the Add block, the order of inputs in the Subtract block matters. Ensure your Minuend (the value being decreased) is the first input and your Subtrahend (the value to subtract) is the second.
* When used with scalar fields, this block subtracts the value of the second scalar field from the first at every point in space.
* To create TPMS from an equation, refer to this [guide](https://support.ntop.com/hc/articles/4403371438611).
* For more information on building mathematical workflows, see our [tips for creating equations](https://support.ntop.com/hc/articles/360063535353).

***

<h2 id="integer-integer">
  Integer, Integer
</h2>

Return the subtraction of one Integer from another.

### Inputs

| Name      | Type                                                     | Description     |
| --------- | -------------------------------------------------------- | --------------- |
| Operand a | [Integer](../../../../block-documentation/types/integer) | First operand.  |
| Operand b | [Integer](../../../../block-documentation/types/integer) | Second operand. |

### Outputs

| Type                                                     |
| -------------------------------------------------------- |
| [Integer](../../../../block-documentation/types/integer) |

***

<h2 id="scalar-scalar">
  Scalar, Scalar
</h2>

Return the subtraction of one Scalar number from another.

### Inputs

| Name      | Type                                                   | Description     |
| --------- | ------------------------------------------------------ | --------------- |
| Operand a | [Scalar](../../../../block-documentation/types/scalar) | First operand.  |
| Operand b | [Scalar](../../../../block-documentation/types/scalar) | Second operand. |

### Outputs

| Type                                                   |
| ------------------------------------------------------ |
| [Scalar](../../../../block-documentation/types/scalar) |

***

<h2 id="scalar-field-scalar-field">
  Scalar Field, Scalar Field
</h2>

Return the subtraction of one Scalar Field from another.

### Inputs

| Name      | Type                                                               | Description     |
| --------- | ------------------------------------------------------------------ | --------------- |
| Operand a | [Scalar Field](../../../../block-documentation/types/scalar-field) | First operand.  |
| Operand b | [Scalar Field](../../../../block-documentation/types/scalar-field) | Second operand. |

### Outputs

| Type                                                               |
| ------------------------------------------------------------------ |
| [Scalar Field](../../../../block-documentation/types/scalar-field) |

***

<h2 id="temperature-scalar">
  Temperature, Scalar
</h2>

Return the subtraction of a Scalar from a Temperature.

### Inputs

| Name      | Type                                                             | Description     |
| --------- | ---------------------------------------------------------------- | --------------- |
| Operand a | [Temperature](../../../../block-documentation/types/temperature) | First operand.  |
| Operand b | [Scalar](../../../../block-documentation/types/scalar)           | Second operand. |

### Outputs

| Type                                                             |
| ---------------------------------------------------------------- |
| [Temperature](../../../../block-documentation/types/temperature) |

***

<h2 id="temperature-temperature">
  Temperature, Temperature
</h2>

Return the subtraction of one Scalar Field from another.

### Inputs

| Name      | Type                                                             | Description     |
| --------- | ---------------------------------------------------------------- | --------------- |
| Operand a | [Temperature](../../../../block-documentation/types/temperature) | First operand.  |
| Operand b | [Temperature](../../../../block-documentation/types/temperature) | Second operand. |

### Outputs

| Type                                                   |
| ------------------------------------------------------ |
| [Scalar](../../../../block-documentation/types/scalar) |

***

<h2 id="temperature-field-scalar-field">
  Temperature Field, Scalar Field
</h2>

Return the subtraction of a Scalar Field from a Temperature Field.

### Inputs

| Name      | Type                                                                         | Description     |
| --------- | ---------------------------------------------------------------------------- | --------------- |
| Operand a | [Temperature Field](../../../../block-documentation/types/temperature-field) | First operand.  |
| Operand b | [Scalar Field](../../../../block-documentation/types/scalar-field)           | Second operand. |

### Outputs

| Type                                                                         |
| ---------------------------------------------------------------------------- |
| [Temperature Field](../../../../block-documentation/types/temperature-field) |

***

<h2 id="temperature-field-temperature-field">
  Temperature Field, Temperature Field
</h2>

Return the subtraction of one Temperature Field from another.

### Inputs

| Name      | Type                                                                         | Description     |
| --------- | ---------------------------------------------------------------------------- | --------------- |
| Operand a | [Temperature Field](../../../../block-documentation/types/temperature-field) | First operand.  |
| Operand b | [Temperature Field](../../../../block-documentation/types/temperature-field) | Second operand. |

### Outputs

| Type                                                               |
| ------------------------------------------------------------------ |
| [Scalar Field](../../../../block-documentation/types/scalar-field) |

***

<h2 id="vector-vector">
  Vector, Vector
</h2>

Return the subtraction of one Vector from another.

### Inputs

| Name      | Type                                                   | Description     |
| --------- | ------------------------------------------------------ | --------------- |
| Operand a | [Vector](../../../../block-documentation/types/vector) | First operand.  |
| Operand b | [Vector](../../../../block-documentation/types/vector) | Second operand. |

### Outputs

| Type                                                   |
| ------------------------------------------------------ |
| [Vector](../../../../block-documentation/types/vector) |

***

<h2 id="vector-field-vector-field">
  Vector Field, Vector Field
</h2>

Return the subtraction of one Vector Field from another.

### Inputs

| Name      | Type                                                               | Description     |
| --------- | ------------------------------------------------------------------ | --------------- |
| Operand a | [Vector Field](../../../../block-documentation/types/vector-field) | First operand.  |
| Operand b | [Vector Field](../../../../block-documentation/types/vector-field) | Second operand. |

### Outputs

| Type                                                               |
| ------------------------------------------------------------------ |
| [Vector Field](../../../../block-documentation/types/vector-field) |

***

<h2 id="2d-vector-field-2d-vector-field-5310">
  2D Vector Field, 2D Vector Field, 5.31.0
</h2>

Return the subtraction of one Vector Field from another.

### Inputs

| Name      | Type                                                                     | Description     |
| --------- | ------------------------------------------------------------------------ | --------------- |
| Operand a | [2D Vector Field](../../../../block-documentation/types/2d-vector-field) | First operand.  |
| Operand b | [2D Vector Field](../../../../block-documentation/types/2d-vector-field) | Second operand. |

### Outputs

| Type                                                                     |
| ------------------------------------------------------------------------ |
| [2D Vector Field](../../../../block-documentation/types/2d-vector-field) |
