Python

[module] Python - cmath.nanj 상수 - complex 자료형의 nan 상수 (= nanj) 반환.

939

목차

  1. cmath.nanj 예제
  2. cmath.nanj 정의
  3. cmath.nanj 구문

 

cmath.nanj 예제

 

import cmath

print (cmath.nanj) # nanj


 

cmath.nanj 정의

 

복소수형 nan 상수 (= nanj ) 반환.

 


 

※ nanj : 실수 부분이 0이고, 허수 부분이 nan

※ nan (Not a Number : 숫자 아님)

complex(0.0,float("nan") 값과 동일.

※ Python 3.6 이상.

 

 

cmath.nanj 구문

 

cmath.nanj

 


[반환값]

 

nanj 반환.

※ complex 자료형 nan 상수.

 



분류 제목
module Python - math.tan() 메서드 -
module Python - math.tanh() 메서드 -
module Python - math.trunc() 메서드 ★ - 정수 부분 반환. (= trunc메서드 = 트렁크)
module Python - math.e 상수 - 오일러 상수 (2.71...)
module Python - math.inf 상수 - float 자료형의 무한대 상수 (= inf) 반환.
module Python - math.nan 상수 - float 자료형의 NaN 상수 (= nan) 반환.
module Python - math.pi 상수 - 원주율 (= 3.14...) 반환. (= 파이 상수)
module Python - math.tau 상수 - 원주율 2배 (= 6.28...) 반환. (= 타우 상수)
module Python - cmath 모듈 메서드・상수 종류 (※ 복소수 모듈)
module Python - cmath.acos(x) 메서드 -
module Python - cmath.acosh(x) 메서드 -
module Python - cmath.asin(x) 메서드 -
module Python - cmath.asinh(x) 메서드 -
module Python - cmath.atan(x) 메서드 -
module Python - cmath.atanh(x) 메서드 -
7/9
목록
 홈  PC버전 로그인 일본어
그누앞단언어
그누뒷단언어
그외코딩언어
그누보드
제작의뢰
Q&A
커뮤니티 3
웹유틸
회원센터
홈짱닷컴 PC버전 로그인