Premium problem47. Cauchy Matrix Determinant

Medium Locked

Given arrays X and Y, build the Cauchy matrix C[i,j] = 1/(X[i] - Y[j]) and return its determinant as a float.

Input

X = [0. 1. 2. 3. 4. 5. 6. 7.]
Y = [0.5 1.5 2.5 3.5 4.5 5.5 6.5 7.5]

Output

3638.163637117973

Premium problem

This one's part of Premium. Unlock the full NumPy track plus every other premium problem on the site.

Implement solve(...)