/*
description:
	fuer genaue aufgabenstellung siehe aufgabenblatt 2
author:
	seth from http://www.bierdatenbank.de
tab stops:
	2 (otherwise hardly readable!)
*/

#include "matrix.h"
#include <math.h>
#include <float.h>

void aufgabe9(matrix&);

void aufgabe9(matrix &A){
	cout <<"9.aufg:"<<endl;
	cout <<"======="<<endl;
	cout <<"A="<<endl;
	A.ausgabe();
	matrix A_iter(A);
	double k=A.QR_givens_iter(A_iter, 50, 1);
	cout <<endl;
	cout <<"A_"<<k<<"="<<endl;
	A_iter.ausgabe(1);
}

int main(){
	cout <<endl;
	int dim=10;
	matrix A(dim, dim);
	A.tridiag(-1, 2, -1);
	aufgabe9(A);
	cout <<endl;
	A.deallocate();
	return 0;
}

