Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
fuelusumar committed Apr 29, 2016
1 parent 951b7ea commit 6d881ea
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Empty file modified README-FERMAT-NETWORK.md
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
8 changes: 8 additions & 0 deletions api-server/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
var avgDist = function (x1, y1, x2, y2, x3, y3) {
var dists = 0;
dist += Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2));
dist += Math.sqrt(Math.pow(x1 - x3, 2) + Math.pow(y1 - y3, 2));
dist += Math.sqrt(Math.pow(x2 - x3, 2) + Math.pow(y2 - y3, 2));
return dist / 3;
};
console.log(avgDist(0, 0, 10, 10, 5, 5));
Empty file modified response
100644 → 100755
Empty file.

0 comments on commit 6d881ea

Please sign in to comment.