The cross ratio of four numbers a,b,c,d is [(c−a)/(c−b)]/[(d−a)/(d−b)].
The cross_ratio command finds the cross ratio.