LU decomposition, Cholesky, Forward substitution, Backward substitution - 수치해석 프로젝트 C++
- 최초 등록일
- 2014.05.02
- 최종 저작일
- 2014.05
- 6페이지/ 한컴오피스
- 가격 3,000원
소개글
수치해석
수치해석 프로젝트 1로,
C++ 언어로 Cholesky's method와 forward substitution, backward substitution을 이용해
주어진 매트릭스 A와 매트릭스 b를 대입해 매트릭스 X를 구하는 방법을 프로그래밍 하여 직접 구해보는 리포트입니다.
목차
1. Cholesky’s method
2. Forward, Backward substitution
3. Programming
4. 프로그래밍 코드
5. 결과 값
본문내용
#include <iostream>
#include <math.h>
#define max 10
using namespace std;
double A[max][max]={0};
double B[max][max]={0};
double C[max][max]={0};
double L[max][max]={0};
double U[max][max]={0};
double b[max][max]={0};
double z[max][max]={0};
double x[max][max]={0};
double Ainv[max][max]={0};
int o,p;
void input(double A[max][max], int m, int n);
void show(double A[max][max],int m, int n);
void lower(double A[max][max], double L[max][max], int n);
void transpose(double A[max][max], double U[max][max], int m, int n);
void forwardsub(double A[max][max], double x[max][max], double b[max][max], int m);
void backwardsub(double A[max][max], double x[max][max], double b[max][max], int m);
참고 자료
없음