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

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

59.42% Correct | 40.58% Incorrect
Last Solution submitted on Jul 13, 2019

Problem Comments

Problem Recent Solvers32

Suggested Problems