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

# relative_error class

**Namespace:** [Ans.DataProcessing.operators.math](https://developer.synopsys.com/docs/dpf/dpf-mechanical/api/Ans.DataProcessing/operators/math)

relative\_error()

relative\_error(value: object, reference: object, config: OperatorConfig)

relative\_error(config: OperatorConfig)

## Class Information

| Property | Value |
| - | - |
| Namespace | `Ans.DataProcessing.operators.math` |
| Assembly | `Ans_Dpf_Native_dll_cs` |
| Base Class | `Ans.DataProcessing.internal_objects.BaseOperator` |

## Inputs

### value

field or fields container with only one field is expected

**Type:** *LinkableInput*

### reference

field or fields container with only one field is expected

**Type:** *LinkableInput*

## Outputs

### field

**Type:** *LinkableOutput*

### zero\_ref\_scoping

Ids of entities where reference value is zero.

**Type:** *LinkableOutput*

### no\_ref\_scoping

Ids of entities where there are no reference value.

**Type:** *LinkableOutput*

## Constructors

#### Constructor

```python theme={null}
relative_error()
```

#### Constructor

```python theme={null}
relative_error(value, reference, config)
```

**Parameters:**

* `value` (*object*)
* `reference` (*object*)
* `config` (*OperatorConfig*)

#### Constructor

```python theme={null}
relative_error(config)
```

**Parameters:**

* `config` (*OperatorConfig*)

## Methods

## Properties

#### inputs

**Type:** *InputSpec*

```python theme={null}
# Get or set the property
value = obj.inputs
obj.inputs = new_value
```

#### outputs

**Type:** *OutputSpec*

```python theme={null}
# Get or set the property
value = obj.outputs
obj.outputs = new_value
```

#### defaultConfig

**Type:** *Config*

```python theme={null}
# Get the property (read-only)
value = obj.defaultConfig
```
