VectorsToSymmetricMatrix(V):: List --> Matrix
VectorsToSymmetricMatrix(V,d):: List, Function --> Matrix

Inputs a list V =\{ v_1, \ldots, v_k\} \in \mathbb R^n and returns the k \times k symmetric matrix of Euclidean distances d(v_i, v_j). When these distances are irrational they are approximated by a rational number.

As an optional second argument any rational valued function d(x,y) can be entered.