Using Mathematica Let An denote the n n matrix whose first

Using Mathematica,

Let An denote the n × n matrix whose first row is the integers 1 through n, second row is the integers n + 1 through 2n and so on to the last row, which would be the integers (n 1)n + 1 through n 2 .

1. Using Array, write a function A[n_] which creates An for a given n.

Generate data and provide a conjecture as to which values of n make An invertible.

Solution

Let us first declare a 2D array

int A[n][n];

int i,j;

for (i=1 to n)

for(j=1 to n)

a(i,j) = n*(i-1)*1 + i

}

}

Using Mathematica, Let An denote the n × n matrix whose first row is the integers 1 through n, second row is the integers n + 1 through 2n and so on to the last

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site