[포트란] 포트란 내용정리
- 최초 등록일
- 2004.01.27
- 최종 저작일
- 2004.01
- 45페이지/ 한컴오피스
- 가격 1,000원
소개글
Larry R. Nyhoff 의 포트란을 요약해 놓은 강의노트자료입니다.
목차
1. Introduction to computing (서론)
2. Basic fortran (포트란의 기초)
3. Selective execution (선택문)
4. Repetitive execution (반복문)
5. Input/output (입출력문)
6. Programming with function (함수를 이용한 프로그래밍)
7. Programming with subroutine (서브루틴을 이용한 프로그래밍)
8. Arrays (배열)
etc (기타)
본문내용
▶ 지금까지 학습한 declaration인 real과 integer 이외에도 logical이 있다. 즉 logical로 선언된 변수는 .true.와 .false. 만을 의미한다.
ex)
logical test1, test2
a=1.
b=2.
test1=a.gt.b
write(*,*) test 화면에 F 가 출력
ex)
test2=a.lt.b
if(test2) write(*,*) test2, a, b 화면에 T 1.00 2.00이 출력
Ref) "A" < "F"와 같은 문자의 경우는 ASCII code의 번호에 대응되는 크기로 결정.
참고 자료
Larry R. Nyhoff and Sanford C. Leestuma, 2001, "Introduction to Fortran 90 for Engineers And Scientists", Prentice-Hall, Inc.