Given arrays X and Y, build the Cauchy matrix C[i,j] = 1/(X[i] - Y[j]) and return its determinant as a float.
X
Y
C[i,j] = 1/(X[i] - Y[j])
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
This one's part of Premium. Unlock the full NumPy track plus every other premium problem on the site.
solve(...)