.relativeError | R Documentation |

Computes the relative error between two numbers `x`

and `y`

.

```
.relativeError(x, y)
```

`x` |
a number |

`y` |
a number |

The relative error `e`

is defined as `e = | 1 - x/y |`

The relative error between `x`

and `y`

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.