1. 程式人生 > >反三角函式atan()運用

反三角函式atan()運用

# -*- coding: UTF-8 -*-
import math
for x in range(1, 130):
#反三角函式atan()
ss = math.atan(x)
    tt = round(ss, 4)
    if tt == round(math.atan(x + 1),4):
print(x)

arctan(107) = 1.56145 == 1.5615

arctan(108) = 1.56154 == 1.5615