fork download
  1. import math as ma
  2.  
  3. x = ma.pi / 4
  4. for i in range(30):
  5. x = ma.cos(ma.tan(x))
  6. print(x)
  7.  
Success #stdin #stdout 0.04s 9648KB
stdin
Standard input is empty
stdout
0.5403023058681398
0.8254255932949894
0.4682922767455424
0.8747777531643893
0.36526314312294245
0.9277629255369567
0.23397385718153482
0.9717314577038857
0.10596396562484471
0.9943488552622719
0.03257225803223241
0.9994691955368068
0.015204795180099973
0.9998843915114297
0.01378411336664266
0.9999049885790595
0.013713587527806478
0.9999059584421424
0.013710266533751212
0.9999060039893606
0.013710110571238181
0.999906006128105
0.013710103247761956
0.9999060062285327
0.01371010290387805
0.9999060062332483
0.013710102887730708
0.9999060062334698
0.013710102886972275
0.9999060062334802