목차
[Debug]
[자료들]
report.cpp
이산수학6.ncb
이산수학6.sln
이산수학6.suo
이산수학6.vcproj
이산수학6.vcproj.Xnote-PC.Xnote.user
1.48MB
파일 21, 폴더 2
[자료들]
report.cpp
이산수학6.ncb
이산수학6.sln
이산수학6.suo
이산수학6.vcproj
이산수학6.vcproj.Xnote-PC.Xnote.user
1.48MB
파일 21, 폴더 2
본문내용
report.cpp
#include
#include
#define E_TYPE double
E_TYPE *factor(int size); //계수행렬을 만드는 함수
E_TYPE *invariable(int size); //상수행렬을 만드는 함수
E_TYPE *addition (E_TYPE *mat1, E_TYPE *mat2, int size); //첨가행렬을 만드는 함수
void print(E_TYPE *mat, int size); //행렬을 출력하는 함수
int GE (E_TYPE *mat, int phase, int size); //가우스 소거법을 수행하는 함수
int BS (E_TYPE *mat, int phase, int size); //후진대입법 적용
E_TYPE *factor(int size) //계수행렬을 만드는 함수
{
int i,j;
E_TYPE *mat;
mat=(E_TYPE*)malloc(sizeof(E_TYPE)*(size)*(size));
printf("계수행렬을 입력하시오. (%d x %d) \n", size, size);
for(i=0; i
{
for(j=0; j
{
scanf("%lf", &mat[i*size+j]);
}
}
return mat;
}
E_TYPE *invariable(int size) //상수행렬을 만드는 함수
{
int i;
E_TYPE *mat;
mat=(E_TYPE*)malloc(sizeof(E_TYPE)*(size));
printf("상수행렬을 입력하시오. (%d x 1) \n", size);
for(i=0; i
{
scanf("%lf", &mat[i]);
}
return mat;
}
E_TYPE *addition (E_TYPE *mat1, E_TYPE *mat2, int size) //첨가행렬을 만드는 함수
{
int i, j, k;
E_TYPE *mat;
mat=(E_TYPE*)malloc(sizeof(E_TYPE)*(size)*(size+1));
for(i=0; i
{
for(j=0; j
{
mat[i*(size+1)+j]=mat1[i*size+j];
}
}
for(k=0; k
{
mat[k*(size+1)+size]=mat2[k];
}
return mat;
}
#include
#include
#define E_TYPE double
E_TYPE *factor(int size); //계수행렬을 만드는 함수
E_TYPE *invariable(int size); //상수행렬을 만드는 함수
E_TYPE *addition (E_TYPE *mat1, E_TYPE *mat2, int size); //첨가행렬을 만드는 함수
void print(E_TYPE *mat, int size); //행렬을 출력하는 함수
int GE (E_TYPE *mat, int phase, int size); //가우스 소거법을 수행하는 함수
int BS (E_TYPE *mat, int phase, int size); //후진대입법 적용
E_TYPE *factor(int size) //계수행렬을 만드는 함수
{
int i,j;
E_TYPE *mat;
mat=(E_TYPE*)malloc(sizeof(E_TYPE)*(size)*(size));
printf("계수행렬을 입력하시오. (%d x %d) \n", size, size);
for(i=0; i
for(j=0; j
scanf("%lf", &mat[i*size+j]);
}
}
return mat;
}
E_TYPE *invariable(int size) //상수행렬을 만드는 함수
{
int i;
E_TYPE *mat;
mat=(E_TYPE*)malloc(sizeof(E_TYPE)*(size));
printf("상수행렬을 입력하시오. (%d x 1) \n", size);
for(i=0; i
scanf("%lf", &mat[i]);
}
return mat;
}
E_TYPE *addition (E_TYPE *mat1, E_TYPE *mat2, int size) //첨가행렬을 만드는 함수
{
int i, j, k;
E_TYPE *mat;
mat=(E_TYPE*)malloc(sizeof(E_TYPE)*(size)*(size+1));
for(i=0; i
for(j=0; j
mat[i*(size+1)+j]=mat1[i*size+j];
}
}
for(k=0; k
mat[k*(size+1)+size]=mat2[k];
}
return mat;
}
추천자료
질적 수학 교수 프로그램에 대한 기본 원리
초등학생(학교) 영재교육 목표와 대상자, 초등학생(학교) 영재교육 운영실태, 초등학생(학교)...
[수학영재교육과정]수학영재의 개념, 수학영재의 특성, 수학영재교육의 교수학습방법, 수학영...
방과후프로그램 지도자료,수과학학습자료,수학활동계획안,정다면체를활용한학습
수학과 놀이중심교육(놀이중심학습)의 의의와 단계, 수학과 놀이중심교육(놀이중심학습)의 프...
수학교육(수학학습) 목표, 수학교육(수학학습) 가치, 수학교육(수학학습)과 GSP프로그램, 수...
창작놀이 프로그램을 적용한 수학지도안
수학과교육 놀이중심교육(놀이중심학습)의 필요성, 수학과교육 놀이중심교육(놀이중심학습)의...
수학과 ICT(정보통신기술)활용교육의 목적과 효과, 수학과 ICT(정보통신기술)활용교육의 자료...
[영유아프로그램개발과평가]몬테소리 프로그램의 교육과정 - 몬테소리 교구의 이해와 특징, ...
다중지능이론 프로그램 - 다중지능의 영역별 특징 및 증진활동 (언어적 지능, 논리-수학적 지...
유아 수학활동프로그램 계획안)
사회복지 프로그램) 지적장애아동 수학, 과학, 정보통신 학습 능력 향상을 위한 학습 역량강...
소개글