• 회원가입
  • 로그인
  • 구글아이디로 로그인

[module] Python - math.pow() 메서드 ★ - 승수값 (= 누승값 = pow메서드 = 포오 = 파워)

1043  
목차
  1. math.pow() 예제 - 2의 3승.
  2. math.pow() 정의
  3. math.pow() 구문

 

math.pow() 예제 - 2의 3승

 

import math

print(math.pow(2, 3))

 

결과값: 8.0

 

math.pow() 정의

 

x의 y승 값을 float 자료형으로 반환.

 


 

※ x가 음수이고 y가 정수 아니면, ValueError 반환.

※ 두 매개변수를 float 자료형으로 변환.

 

cf. pow() 함수 

 

 

math.pow() 구문

 

math.pow(x, y)

 


[구문]

 

x

필수. 밑수. 

 

y

필수. 지수. (= 승수)

 


[반환값]

 

x의 y승 값.

※ float 자료형.

 



분류 제목
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) 메서드 -
module Python - cmath.cos(x) 메서드 -
module Python - cmath.cosh(x) 메서드 -
module Python - cmath.exp(x) 메서드 -
module Python - cmath.isclose() 메서드 -
module Python - cmath.isfinite(x) 메서드 -
module Python - cmath.isinf(x) 메서드 -
module Python - cmath.isnan(x) 메서드 -
module Python - cmath.log() 메서드 -
module Python - cmath.log10() 메서드 -
module Python - cmath.phase() 메서드 -
module Python - cmath.polar() 메서드 -
module Python - cmath.rect() 메서드 -
module Python - cmath.sin(x) 메서드 -
module Python - cmath.sinh(x) 메서드 -
module Python - cmath.sqrt(x) 메서드 -
6/7
목록
찾아주셔서 감사합니다. Since 2012