검색어 입력폼

인하대학교/기계공학/수치해석/주현철교수님/Homework1

저작시기 2014.03 |등록일 2014.07.30 | 최종수정일 2014.07.30 파일확장자압축파일 (zip) | 가격 1,500원

소개글

#include
#include
#define PI 3.1*************323846264 // pi값 직접 정의


// fcatiorial 함수 정의
int factorial( int k ){

int m, result = 1;
for( m = 1; m <= k; m++){

result = result * m;

}

return result;

}
void main(){

FILE * fp ; // 포인터를 이용하여 출력파일을 텍스트 문서로 저장

double f = sin( PI / 4 ) // 구하고자 하는 함수값
int x_i = 1; // 주어진 함수값에 대한 x 값
int n = 5; // 유효숫자 개수
int i = 0;
double x = 1.0;

double Es = 0.5 * pow( 10.0 , 2 - n); // Scarborough's error-criterion
double x_result = PI / 4; // 구하고자 하는 함수값의 x 값
double func = 0; // 초기 함수값은 0
double func_pre = 0;
double taylor_f, Et, Ea;

fp = fopen ( "data.txt" , "w" ); // data.txt 파일 생성 후 결과값 받음

컴파일 실행환경

Visual studio2010

압축파일 내 파일목록

problem3/Debug/exercise.exe
problem3/Debug/exercise.ilk
problem3/Debug/exercise.pdb
problem3/exercise/data.txt
problem3/exercise/Debug/cl.command.1.tlog
problem3/exercise/Debug/CL.read.1.tlog
problem3/exercise/Debug/CL.write.1.tlog
problem3/exercise/Debug/exercise.exe.embed.manifest
problem3/exercise/Debug/exercise.exe.embed.manifest.res
problem3/exercise/Debug/exercise.exe.intermediate.manifest
problem3/exercise/Debug/exercise.lastbuildstate
problem3/exercise/Debug/exercise.log
problem3/exercise/Debug/exercise.obj
problem3/exercise/Debug/exercise.vcxprojResolveAssemblyReference.cache
problem3/exercise/Debug/exercise.write.1.tlog
problem3/exercise/Debug/exercise_manifest.rc
problem3/exercise/Debug/link-cvtres.read.1.tlog
problem3/exercise/Debug/link-cvtres.write.1.tlog
problem3/exercise/Debug/link.4312-cvtres.read.1.tlog
problem3/exercise/Debug/link.4312-cvtres.write.1.tlog
problem3/exercise/Debug/link.4312.read.1.tlog
problem3/exercise/Debug/link.4312.write.1.tlog
problem3/exercise/Debug/link.command.1.tlog
problem3/exercise/Debug/link.read.1.tlog
problem3/exercise/Debug/link.write.1.tlog
problem3/exercise/Debug/mt.command.1.tlog
problem3/exercise/Debug/mt.read.1.tlog
problem3/exercise/Debug/mt.write.1.tlog
problem3/exercise/Debug/rc.command.1.tlog
problem3/exercise/Debug/rc.read.1.tlog
problem3/exercise/Debug/rc.write.1.tlog
problem3/exercise/Debug/vc100.idb
problem3/exercise/Debug/vc100.pdb
problem3/exercise/exercise.cpp
problem3/exercise/exercise.vcxproj
problem3/exercise/exercise.vcxproj.filters
problem3/exercise/exercise.vcxproj.user
problem3/exercise.sdf
problem3/exercise.sln
problem3/exercise.suo
problem3/ipch/exercise-d2460eb2/exercise-e83e7164.ipch
problem3/ipch
problem2-2/Debug/problem3.exe
problem2-2/Debug/problem3.ilk
problem2-2/Debug/problem3.pdb
problem2-2/ipch/problem3-e9c85d08/problem3-cc099c30.ipch
problem2-2/ipch
problem2-2/problem3/data.txt
problem2-2/problem3/Debug/cl.command.1.tlog
problem2-2/problem3/Debug/CL.read.1.tlog
problem2-2/problem3/Debug/CL.write.1.tlog
problem2-2/problem3/Debug/link-cvtres.read.1.tlog
problem2-2/problem3/Debug/link-cvtres.write.1.tlog
problem2-2/problem3/Debug/link.command.1.tlog
problem2-2/problem3/Debug/link.read.1.tlog
problem2-2/problem3/Debug/link.write.1.tlog
problem2-2/problem3/Debug/mt.command.1.tlog
problem2-2/problem3/Debug/mt.read.1.tlog
problem2-2/problem3/Debug/mt.write.1.tlog
problem2-2/problem3/Debug/problem3.exe.embed.manifest
problem2-2/problem3/Debug/problem3.exe.embed.manifest.res
problem2-2/problem3/Debug/problem3.exe.intermediate.manifest
problem2-2/problem3/Debug/problem3.lastbuildstate
problem2-2/problem3/Debug/problem3.log
problem2-2/problem3/Debug/problem3.obj
problem2-2/problem3/Debug/problem3.vcxprojResolveAssemblyReference.cache
problem2-2/problem3/Debug/problem3.write.1.tlog
problem2-2/problem3/Debug/problem3_manifest.rc
problem2-2/problem3/Debug/rc.command.1.tlog
problem2-2/problem3/Debug/rc.read.1.tlog
problem2-2/problem3/Debug/rc.write.1.tlog
problem2-2/problem3/Debug/vc100.idb
problem2-2/problem3/Debug/vc100.pdb
problem2-2/problem3/problem3.cpp
problem2-2/problem3/problem3.vcxproj
problem2-2/problem3/problem3.vcxproj.filters
problem2-2/problem3/problem3.vcxproj.user
problem2-2/problem3.sdf
problem2-2/problem3.sln
problem2-2/problem3.suo
problem2-1/Debug/problem2.exe
problem2-1/Debug/problem2.ilk
problem2-1/Debug/problem2.pdb
problem2-1/ipch/problem2-6a436b67/problem2-cbf783af.ipch
problem2-1/ipch
problem2-1/problem2/date.txt
problem2-1/problem2/Debug/cl.command.1.tlog
problem2-1/problem2/Debug/CL.read.1.tlog
problem2-1/problem2/Debug/CL.write.1.tlog
problem2-1/problem2/Debug/link-cvtres.read.1.tlog
problem2-1/problem2/Debug/link-cvtres.write.1.tlog
problem2-1/problem2/Debug/link.5272-cvtres.read.1.tlog
problem2-1/problem2/Debug/link.5272-cvtres.write.1.tlog
problem2-1/problem2/Debug/link.5272.read.1.tlog
problem2-1/problem2/Debug/link.5272.write.1.tlog
problem2-1/problem2/Debug/link.command.1.tlog
problem2-1/problem2/Debug/link.read.1.tlog
problem2-1/problem2/Debug/link.write.1.tlog
problem2-1/problem2/Debug/mt.command.1.tlog
problem2-1/problem2/Debug/mt.read.1.tlog
problem2-1/problem2/Debug/mt.write.1.tlog
problem2-1/problem2/Debug/problem2.exe.embed.manifest
problem2-1/problem2/Debug/problem2.exe.embed.manifest.res
problem2-1/problem2/Debug/problem2.exe.intermediate.manifest
problem2-1/problem2/Debug/problem2.lastbuildstate
problem2-1/problem2/Debug/problem2.log
problem2-1/problem2/Debug/problem2.obj
problem2-1/problem2/Debug/problem2.vcxprojResolveAssemblyReference.cache
problem2-1/problem2/Debug/problem2.write.1.tlog
problem2-1/problem2/Debug/problem2_manifest.rc
problem2-1/problem2/Debug/rc.command.1.tlog
problem2-1/problem2/Debug/rc.read.1.tlog
problem2-1/problem2/Debug/rc.write.1.tlog
problem2-1/problem2/Debug/vc100.idb
problem2-1/problem2/Debug/vc100.pdb
problem2-1/problem2/problem2.cpp
problem2-1/problem2/problem2.vcxproj
problem2-1/problem2/problem2.vcxproj.filters
problem2-1/problem2/problem2.vcxproj.user
problem2-1/problem2.sdf
problem2-1/problem2.sln
problem2-1/problem2.suo
problem1/Debug/problem1.exe
problem1/Debug/problem1.ilk
problem1/Debug/problem1.pdb
problem1/ipch/problem1-f437c104/problem1-cbe56b2e.ipch
problem1/ipch
problem1/problem1/data.txt
problem1/problem1/Debug/cl.command.1.tlog
problem1/problem1/Debug/CL.read.1.tlog
problem1/problem1/Debug/CL.write.1.tlog
problem1/problem1/Debug/link-cvtres.read.1.tlog
problem1/problem1/Debug/link-cvtres.write.1.tlog
problem1/problem1/Debug/link.3396-cvtres.read.1.tlog
problem1/problem1/Debug/link.3396-cvtres.write.1.tlog
problem1/problem1/Debug/link.3396.read.1.tlog
problem1/problem1/Debug/link.3396.write.1.tlog
problem1/problem1/Debug/link.command.1.tlog
problem1/problem1/Debug/link.read.1.tlog
problem1/problem1/Debug/link.write.1.tlog
problem1/problem1/Debug/mt.command.1.tlog
problem1/problem1/Debug/mt.read.1.tlog
problem1/problem1/Debug/mt.write.1.tlog
problem1/problem1/Debug/problem1.exe.embed.manifest
problem1/problem1/Debug/problem1.exe.embed.manifest.res
problem1/problem1/Debug/problem1.exe.intermediate.manifest
problem1/problem1/Debug/problem1.lastbuildstate
problem1/problem1/Debug/problem1.log
problem1/problem1/Debug/problem1.obj
problem1/problem1/Debug/problem1.vcxprojResolveAssemblyReference.cache
problem1/problem1/Debug/problem1.write.1.tlog
problem1/problem1/Debug/problem1_manifest.rc
problem1/problem1/Debug/rc.command.1.tlog
problem1/problem1/Debug/rc.read.1.tlog
problem1/problem1/Debug/rc.write.1.tlog
problem1/problem1/Debug/vc100.idb
problem1/problem1/Debug/vc100.pdb
problem1/problem1/problem1.cpp
problem1/problem1/problem1.vcxproj
problem1/problem1/problem1.vcxproj.filters
problem1/problem1/problem1.vcxproj.user
problem1/problem1.sdf
problem1/problem1.sln
problem1/problem1.suo
다운로드 맨위로