# EXAMPLE - Comparison Functions Equal

This example demonstrate the following comparison functions.

In this example, the dataset contains current measurements of the sides of rectangular areas next to the size of those areas as previously reported. Using these functions, you can perform some light analysis of the data.

Source:

sideAsideBreportedArea
41456
6635
8432
1515200
4728
12670
9981

Transformation:

In the first test, you are determining if the four-sided area is a square, based on a comparison of the measured values for `sideA` and `sideB`:

Transformation Name `New formula` `Single row formula` `EQUAL(sideA, sideB)` `'isSquare'`

Next, you can use the reported sides to calculate the area of the shape and compare it to the area previously reported:

Transformation Name `New formula` `Single row formula` `NOTEQUAL(sideA * sideB, reportedArea)` `'isValidData'`

You can also compute if the reportedArea can be divided into even square units:

Transformation Name `New formula` `Single row formula` `ISEVEN(reportedArea)` `'isReportedAreaEven'`

You can test if either measured side is an odd number of units:

Transformation Name `New formula` `Single row formula` `IF((ISODD(sideA) == true) OR (ISODD(sideB) == true),TRUE,FALSE)` `'isSideOdd'`

Results:

sideAsideBreportedAreaisSquareisValidDataisReportedAreaEvenisSideOdd
41456FALSEFALSETRUEFALSE
6635TRUETRUETRUEFALSE
8432FALSEFALSETRUEFALSE
1515200TRUETRUETRUETRUE
4728FALSEFALSETRUETRUE
12670FALSETRUETRUEFALSE
9981TRUEFALSEFALSEFALSE
[{ "type": "thumb-down", "id": "hardToUnderstand", "label":"Hard to understand" },{ "type": "thumb-down", "id": "incorrectInformationOrSampleCode", "label":"Incorrect information or sample code" },{ "type": "thumb-down", "id": "missingTheInformationSamplesINeed", "label":"Missing the information/samples I need" },{ "type": "thumb-down", "id": "otherDown", "label":"Other" }]
[{ "type": "thumb-up", "id": "easyToUnderstand", "label":"Easy to understand" },{ "type": "thumb-up", "id": "solvedMyProblem", "label":"Solved my problem" },{ "type": "thumb-up", "id": "otherUp", "label":"Other" }]