support: Support to creating exercises

Description Usage Arguments Examples

Description

The equivalent function verifies whether two objects are similar up to rounding errors. It should be used instead of identical for tests that admit a small numerical inconsistency.

Usage

1
equivalent(a, b)

Arguments

a, b

Objects to be compared

Examples

1
2
identical (1, 1 / 3 * (1 + 1 + 1))
equivalent (1, 1 / 3 * (1 + 1 + 1))

lageIBUSP/notaR-r documentation built on May 5, 2019, 12:30 a.m.