c++을 이용한 Gauss seidel 프로그램
- 최초 등록일
- 2009.06.23
- 최종 저작일
- 2005.01
- 6페이지/ 한컴오피스
- 가격 2,500원
소개글
c++을 이용한 Gause seidel 프로그램
목차
◎ C++ Code
◎ Jacobi Method
◎ Gauss Seidel Method
◎ Jacobi Method & Gauss Seidel Method
본문내용
◎ C++ Code
Assignment No.7 - Gauss Seidel Method
Post: Kyung Hee University, Department of Mechanical Engineering
Grade : 4
Name : Park Kwang-Soo
Assign : 2006.11.02
Due : 2006.11.09
Adviser : Ha Sung-Nam
Description : Gauss Seidel Method is an iterative technique to solve
the linear system Ax=b. It is better than Jacobi method.
E1 : 4 1 1 0 1 6
E2 : -1 -3 1 1 0 6
E3 : 2 1 5 -1 -1 6
E4 : -1 -1 -1 4 0 6
E5 : 0 2 -1 1 4 6
************************************************************************/
#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
int main()
{
double Error_Value=0.00001;
double Matrix[5][6]={
{ 4, 1, 1, 0, 1, 6},
{-1, -3, 1, 1, 0, 6},
{ 2, 1, 5, -1, -1, 6},
{-1, -1, -1, 4, 0, 6},
{ 0, 2, -1, 1, 4, 6}};
double Temp[5];
double Error[5];
double Solution[5]={0};
double Tmp,Temp_Solution,Error_Max;
Error_Max=1;
for(int COUNTER=1; Error > Error_Value ; COUNTER++)
참고 자료
▶ Numerical Analysis // Ha, Sung Nam //경 문사 // 2005
▶ C++ 프로그래밍을 통한 컴퓨터의 이해 // 송영재외 역 // 인터비젼 // 2004
▶ C로 구현하는 수치 해석 // 지영준 김화준 허정권 공저 // 높이깊이 // 2002
▶ VISUAL C++6.0으로 구현하는 수치해석 // 최행진 // 아진 // 2001