Guest User

Untitled

a guest
Jun 18th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. package Gauss;
  2. public class GaussTest {
  3.  
  4. public static void main(String[] args) {
  5. double[][] tab = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}};
  6. double[] wart = {3, 6, 9};
  7. double[][] tab2 = {{0, 1, 0}, {0, 1, 2}, {2, 0, 2}};
  8. Gauss g1 = new Gauss(tab, wart);
  9. Gauss g2 = new Gauss(tab, wart);
  10. System.out.println("Metoda Gaussa (bez wyboru elementu podstawowego): ");
  11. g1.prosteGaussa();
  12. System.out.println("Metoda Gaussa (odwrotna): ");
  13. g1.odwrotna();
  14. System.out.println("Macierz odwrotna: ");
  15. Gauss odw = new Gauss(g2.odwrotna(), g2.b);
  16. odw.wyswietl();
  17. System.out.println("Metoda z wyborem el. podst.: ");
  18. g2.Crout();
  19. }
  20. }
Add Comment
Please, Sign In to add comment