Problem 2870. Print the largest eigenvalue of A(500)

Created by Gentian Zavalani in Community

Write a function that prints the largest eigenvalue of A(500), without any extraneous output.

For a positive integer n, let A(n) be the n×n matrix with entries aij = 1/(i + j − 1). The eigenvalues of A(n) are all real numbers.

(Hint: The M-file may take a while to run if you use a loop within a loop to define A. Try to avoid this!)

Solution Stats

58.21% Correct | 41.79% Incorrect
Last solution submitted on Sep 23, 2018

Problem Comments

Recent Solvers30

Suggested Problems