(*.223.63.186) 조회 수 22013 추천 수 160 댓글 1
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
이미 수업시간에 배우신것 같지만

double precison, single precision은 표현할 수 있는 수의 정밀도가 각기 다릅니다

이 정밀도 이상의 계산을 요하면 오차가 발생하게 됩니다

아마 모두 double 형으로 변수를 선언하셔서 오차가 나지 않은것 아닐까요?

>제 기억으로는
>
>교수님께서 개인 과제물 예습 문제 두 개 중에서 하나는 오차가 날 거라고 하셨는데..
>(첫번째 문제였는지, 두번째 문제였는지는 기억이 가물가물한 관계로ㅠㅠ)
>
>프로그램을 실행해보니까 오차가 나지 않네요..ㅠㅠ
>
>여러번 실행해도 동일하고도 정확한 결과가 나오는데
>
>프로그램 코드를 어떻게 짜느냐에 따라서 결과 오차가 날 수도 있고 혹은 안날 수도 있나요?
  • ?
    김성환 2007.09.12 22:21 (*.223.205.45)
    결과를 출력하는 부분에서 결과값의 출력 형태를 소수점 아래 15자리까지라고 명시하여 선언한 후에는 교수님께서 말씀하셨던 대로 출력이 나왔습니다.
    변수 선언은 동일하게 double 로 선언된 상태였습니다^^ㅎㅎ

List of Articles
번호 제목 글쓴이 날짜 조회 수
1029 [Term-Report] Simulation of Darken's Uphill Diffusion file Byeong-Joo Lee 2017.05.04 13368
1028 [Term-Report] Simulation of Darken's Uphill Diffusion file Byeong-Joo Lee 2017.11.15 5162
1027 [Term-Report] Simulation of Darken's Uphill Diffusion file Byeong-Joo Lee 2021.11.18 198
1026 [Term-Report] Simulation of Darken's uphill diffusion file Byeong-Joo Lee 2022.11.21 88
1025 [Term-Report] file Byeong-Joo Lee 2015.05.19 16848
1024 [Term Report] Simulation of Uphill Diffusion file Byeong-Joo Lee 2016.05.25 16125
1023 [Term Report] Simulation of Darken's uphill diffusion file Byeong-Joo Lee 2023.11.27 207
1022 [Term Report] file Byeong-Joo Lee 2014.05.29 18678
» [re] 첫번째 개인 과제물 예습 문제 1 김은하 2007.09.12 22013
1020 [Reference state] Enthalpy of mixing vs. enthalpy of formation ... file Byeong-Joo Lee 2022.10.04 98
1019 [Multicomponent Diffusion] file Byeong-Joo Lee 2015.05.12 20299
1018 [Multi-component Diffusion] file Byeong-Joo Lee 2017.11.15 4707
1017 [Multi-component Diffusion] file Byeong-Joo Lee 2021.11.18 185
1016 [Mid]도경연 6 file 도경연 2016.04.26 18864
1015 [Midterm]조혜성 file S.J 2017.04.20 14604
1014 [midterm]엄지섭 file 엄지섭 2015.04.28 17035
1013 [Midterm]김성진 file 김성진 2017.10.30 4409
1012 [MIDTERM]김민정 file 김민정 2017.04.20 15344
1011 [Midterm]_유종명 file 명이에요 2014.04.29 17966
1010 [Midterm] 한철희 file 한철희 2017.04.20 14188
Board Pagination ‹ Prev 1 2 3 4 5 6 7 8 9 10 ... 56 Next ›
/ 56

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소

Designed by sketchbooks.co.kr / sketchbook5 board skin

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5



XE Login