Due in 2 hr (a) Use Octave as a Calculator to answer this question Suppose that A and B are two 8 × 9 matrices. The (i, j)-entry of the matrix B is given by i *j -1. The (i,j)-entry of the matrix A equals 0 if i +j is divisible by 5 and equals the (i,j)-entry of the matrix B otherwise. i. What are the rank and nullity of matrices A and B? Is vector u =[964,-71,4249, 59, 234,-196.97]...
About linear algebra,matrix; 2. (a) Use Octave as a Calculator to answer this question. Suppose that A and B are two 8 x 9 matrices. The (i.j)-entry of the matrix B is given by i *j -1. The (i. j)-entry of the matrix A equals 0 if i + j is divisible by 5 and equals the (i,j)-entry of the matrix B otherwise. i. What are the rank and nullity of matrices A and B? ii. Is vector u 9,64,-71,...
please answer 2a(i) only 2. (a) Use Octave as a Calculator to answer this question. Suppose that A and B are two 8 × 9 matrices. The (i, j)-entry of the matrix B is given by i *j - 1. The (i,j)-entry of the matrix A equals 0 if i +j is divisible by and equals the (i,j)-entry of the matrix B otherwise. i. What are the rank and nullity of matrices A and B? ii. Is vector u- [9,...
Suppose A is a 4x2 matrix and B is a 2x3 matrix, such as 8 81 A=1-4-6 3 -86 B=12-6 What are the dimensions of the following matrix products? . The dimension oF AB is . The dimension of BTAT is . The dimension of ATA is . The dimension of BBT is Give the answer in the format (number of rows) * (number of columns)
Solve all parts please 5. In the following problems, recall that the adjacency matrix (or incidence matrix) for a simple graph with n vertices is an n x n matrix with entries that are all 0 or 1. The entries on the diagonal are all 0, and the entry in the ih row and jth column is 1 if there is an edge between vertex i and vertex j and is 0 if there is not an edge between vertex...
Why is my multiplication wrong when i do a matrix of 3 x 5 and 2 x 2? code below import java.util.*; public class matrix { public static void main(String[] args) { int m, n, i, j; Random rand = new Random(); Scanner scan = new Scanner(System.in); System.out.print("enter how many rows:"); m = scan.nextInt(); System.out.print("enter how many columns:"); n=scan.nextInt(); int matrix_1[][] = new int[m][n]; //Initialize matrixes int maritx_2[][] = new int[m][n]; int matrix_add[][] = new int[m][n]; int matrix_mul[][] = new...
JAVA LAB 1 2 5 7 6 9 3 8 . Write code to implement an adjacency matrix (2d matrix) which represents the graph. Your code should contain a function called addEdgelint i, int j). Use this function to add the appropriate edges in your matrix. Write code to implement Depth-First-Search (DFS) and Breadth-First-Search (BFS) of your graph. Let 0 be the source Node . Traverse the graph using DFS, print the Nodes as they are visited. . Traverse the...
Topic Ch. 10 : Write a class definition for a 2x2 matrix, with methods for get(i,j), set(i,j,v) for getting and setting (i,j)-the entry where i is the row index 0 or 1, and j is the column index 0 or 1, and set() sets the entry in row i and column j to be v, a method for adding a matrix y to given x (e.g. x.add(y) will set x=x+y where the corresponding matrix entries are added), for multiplying( e.g....
1 4 7 10 2 5 8 11 3 6 9 12 I want to print this matrix in c language. How did this formula come out? (3 * j + i + 1); #include <stdio.h> int main() { int y[3][4]; int i, j; for (i = 0; i < 3; i++) { for (j = 0; j < 4; j++) printf("%d ", 3 * j + i + 1); printf("\n"); } return 0; }
(1 point) Diagonalize the matrix 8 8 5 A= 7 7 -7 0 0 3 Namely, find an invertible matrix P and a diagonal matrix D such that P-1AP = D. P= O 0 D = 0 0 0 0