close all; clear; clc

% location of coffee shop from my house in blocks
x = 1;
y = -1;

% distance to coffee shop
dist = sqrt(x^2 +y^2);

% is it closer than 3.5 blocks?
dist < 3.5