Cody

Problem 43633. Calculate the sum of elements of n*n Hilbert matrix.

Calculate the sum of elements of n*n Hilbert matrix.

For example, for n=5:

HilbertMatrix =

 [1.0000    0.5000    0.3333    0.2500    0.2000;
  0.5000    0.3333    0.2500    0.2000    0.1667;
  0.3333    0.2500    0.2000    0.1667    0.1429;
  0.2500    0.2000    0.1667    0.1429    0.1250;
  0.2000    0.1667    0.1429    0.1250    0.1111]

result=6.4563

Solution Stats

72.73% Correct | 27.27% Incorrect
Last solution submitted on Dec 06, 2018