From Evernote: |
논리 연산자, 관계 연산자 |
논리 연산자
논리형은 두 가지 값만을 가질 수 있다. .true. 또는 .false.논리형에 대한 연산은 논리 연산자를 사용한다.
- .not.
- .and.
- .or.
- .eqv.
- .neqv.
관계 연산자
관계 연산자는 두 표현식을 비교하는 연산자이다.
- <
작다. - <=
작거나 같다. - >
크다. - >=
크거나 같다. - ==
같다. - /=
같지 않다.
논리식
논리식의 결과는 .true. 또는 .false. 이다.
만일, 두 실수형의 값을 비교하는 경우에는 주의해야 하는데, 컴퓨터가 실수값을 표현하는데 있어서 그 정밀도가 유한하기 때문이다. 이런 경우에는 두 실수 값을 직접 비교( a == b )하기 보다는 두 값의 차이가 허용 오차 이내인지를 판별하는 것이 좋다.
real, parameter :: delta = 0.000001
abs(a -b) < delta ! a와 b의 값이 거의 같다면 .true.
abs는 매개변수로 주어진 값의 절대값을 반환하는 함수이다.
12bet | Horse Betting | Bet Online | T&Cs Apply
답글삭제12bet is one of the most popular online sports betting 12bet platform 카지노 in the market. There's a wide range of sports, live games, 메리트카지노총판 and betting options.
Top 20 casino games in Israel - Airjordan4retro.com
답글삭제A air jordan 18 retro racer blue for sale top-10 list of the best casinos in jordan 18 white royal blue to us Israel (2021), plus air jordan 18 retro yellow suede clearance the most cheap retro jordans popular ones. where can you buy air jordan 18 retro toro mens sneakers