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

Solution 1146802

Submitted on 27 Mar 2017 by H M Dipu Kabir
  • Size: 10
  • This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
n = 5; y_correct = 6.4563; assert(abs(SumHilb(n)-y_correct)<10^(-4))

ans = []

2   Pass
n = 10; y_correct = 13.3754; assert(abs(SumHilb(n)-y_correct)<10^(-4))

ans = []

Suggested Problems

More from this Author37

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!