         let returnedResult = vDSP.linearInterpolate(a, b,
                                                     using: interpolationConstant)
         
-        expectTrue(result.elementsEqual(legacyResult))
-        expectTrue(result.elementsEqual(returnedResult))
+        expectTrue(elementsAlmostEqual(result, legacyResult))
+        expectTrue(elementsAlmostEqual(result, returnedResult))
     }
     
     AccelerateTests.test("vDSP/SinglePrecisionInterpolateBetweenNeighbours") {

        let returnedResult = vDSP.linearInterpolate(elementsOf: shortSignal,
                                                    using: controlVector)
        
        expectTrue(result.elementsEqual(legacyResult))
        expectTrue(result.elementsEqual(returnedResult))
    }
}

//===----------------------------------------------------------------------===//
//
//  vDSP difference equation
//
//===----------------------------------------------------------------------===//

if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
    
    AccelerateTests.test("vDSP/DifferenceEquationSinglePrecision") {
        let n = 256
        

        let returnedResult = vDSP.linearInterpolate(a, b,
                                                    using: interpolationConstant)
        
        expectTrue(elementsAlmostEqual(result, legacyResult))
        expectTrue(elementsAlmostEqual(result, returnedResult))
    }
    
    AccelerateTests.test("vDSP/DoublePrecisionInterpolateBetweenNeighbours") {
