Cody

Problem 2382. Inverse of Hilbert matrix

Solution 3855933

Submitted on 26 Nov 2020 by Alisio
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
x = 0; y_correct = []; assert(isequal(invHilb2(x),y_correct))

y = 0×0 empty uint64 matrix

2   Pass
x = 1; y_correct = 1; assert(isequal(invHilb2(x),y_correct))

y = uint64 1

3   Pass
x = 2; y_correct = [16 36 36 144]; assert(isequal(invHilb2(x),y_correct))

y = 2×2 uint64 matrix 16 36 36 144

4   Pass
x = 3; y_correct = [ 81 1296 900 1296 36864 32400 900 32400 32400]; assert(isequal(invHilb2(x),y_correct))

y = 3×3 uint64 matrix 81 1296 900 1296 36864 32400 900 32400 32400

5   Pass
x = 4; y_correct = [ 256 14400 57600 19600 14400 1440000 7290000 2822400 57600 7290000 41990400 17640000 19600 2822400 17640000 7840000]; assert(isequal(invHilb2(x),y_correct))

y = 4×4 uint64 matrix 256 14400 57600 19600 14400 1440000 7290000 2822400 57600 7290000 41990400 17640000 19600 2822400 17640000 7840000

Suggested Problems

More from this Author11

Community Treasure Hunt

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

Start Hunting!