pythonで度数変換をする際のメモ。
rad(ラジアン)=>度数
import math
math.degrees(theta)
# theta = pi/4なら45.0が出力
度数=>rad(ラジアン)
import math
math.radians(theta)
# theta = 45なら0.78539...が出力
Go to list of users who liked
More than 5 years have passed since last update.
pythonで度数変換をする際のメモ。
rad(ラジアン)=>度数
import math
math.degrees(theta)
# theta = pi/4なら45.0が出力
度数=>rad(ラジアン)
import math
math.radians(theta)
# theta = 45なら0.78539...が出力
Register as a new user and use Qiita more conveniently
Go to list of users who liked