1. Engineering
  2. Computer Science
  3. cant get this to complile faults out first two lines...

Question: cant get this to complile faults out first two lines...

Question details

cant get this to complile faults out first two lines

import matrix.MatrixCreator();
import matrix.MatrixOpreationsInterface();

public class Equation {
   public static void main(String[] args){
  
   MatrixOperationsInterface A = MatirxCreator.create(3,3);
  
   A.setElement(1,1,1.6);
   A.setElement(1,2,2.4);
   A.setElement(1,3,-3.7);
  
   A.setElement(2,1,17.6);
   A.setElement(2,2,-5.6);
   A.setElement(2,3,0.05);
  
   A.setElement(3,1,-2);
   A.setElement(3,2,2);
   A.setElement(3,3,25.3);
  
   MatrixOperationsInterface B = MatirxCreator.create(3,1);
  
   B.setElement(1,1,-22.10);
   B.setElement(2,1,-4.35);
   B.setElement(3,1,233.70);
  
   MatrixOperationsInterface A_inv = A.inverse();
  
   MatrixOperationsInterface x = A_inv.multiply(B);
  
   System.out.println(x.getElement(1,1));
   System.out.println(x.getElement(2,1));
   System.out.println(x.getElement(3,1));
  
   }
   }

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution