1 / 3

컴퓨터 개론 및 실습 2 차 프로젝트 Q & A

컴퓨터 개론 및 실습 2 차 프로젝트 Q & A. Byoungjun Kim (bjkim@archi.snu.ac.kr) Ansu Na(asna@archi.snu.ac.kr) School of Computer Science and Engineering Seoul National University. Q&A. Newton/ R aphson Method Q . 방정식 항들의 계수 , 지수는 int 범위인가 ? 연산 중에 int 범위를 안 벗어난 다고 가정해도 되는가 ?

ashby
Download Presentation

컴퓨터 개론 및 실습 2 차 프로젝트 Q & A

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 컴퓨터 개론 및 실습2차 프로젝트Q & A Byoungjun Kim (bjkim@archi.snu.ac.kr) Ansu Na(asna@archi.snu.ac.kr) School of Computer Science and Engineering Seoul National University

  2. Q&A • Newton/Raphson Method Q. 방정식 항들의 계수, 지수는 int범위인가? 연산 중에 int범위를 안 벗어난 다고 가정해도 되는가? A. 네 int범위가 맞습니다. 또한미분/연산 과정에서 overflow가 나거나 하는 경우는 생각하지 않아도 됩니다. Q. 출력에 소수점 제한이 있는가? A. 네 출력에 소수점 자리 제한은 없습니다. • .5 와같은 소수표현은 어떻게 처리 해야 하는가? A. 소수표현도 모두 0.5와 같이 정수표현이 앞에 먼저 있는 것만을 처리하시면 됩니다. 따라서 .5같은 입력은 들어오지 않는 것으로 생각하시면 됩니다.

  3. Q&A • Calculator Q. +3.4+(+3.7)과 같은 꼴도 처리를 해야 하는가? A. ‘+’ 는 연산자로만 사용되며 위와 같은 형태를 처리할 필요는 없습니다. 또한 혼동을 피하기 위해 위와 같은 입력은 테스트 하지 않을 생각이니 예외처리로 굳이 거르실 필요도 없습니다. Q. ((-2)), (-(-2), () 같은 괄호 처리는 어떻게 해야 하는가? A. 괄호는 ‘피연산자’를 ‘한 번’묶는 것만 처리하시면 됩니다. [ (1)+(-1)과 같이 ] ((-2))의 경우와 같이 의미상으로는 문제가 없는 경우는 테스트 하지 않겠습니다. 다만 “(-(-2)” 의 경우 괄호가 다 닫히지 않은 경우이기 때문에 예외처리를 해야 하며, ()는 피연산자가 안에 없으므로 예외처리를 해야 합니다. • .5 와같은 소수표현은 어떻게 처리 해야 하는가? A. 소수표현도 모두 0.5와 같이 정수표현이 앞에 먼저 있는 것만을 처리하시면 됩니다. 따라서 .5같은 입력은 들어오지 않는 것으로 생각하시면 됩니다.

More Related