core-math-sys 1.3.0

Generate bindings to CORE-MATH
Documentation
# generate worst cases with sin(x) near +1/-1
def wc(out):
   prec = 113
   f = open(out,"w")
   R = RealField(prec)
   for e in [0..16384]:
      u = 2^(e-prec)
      l = continued_fraction(u/(pi/2))
      bestq = 0
      for r in l.convergents():
         p,q = r.numer(),r.denom()
         # q*u ~ p*pi/2
         if q.nbits()>prec:
            break
         if is_even(p): # if p is even, then cos(q*u) is near 1 or -1
            bestq = q
      if bestq != 0:
         x = R(bestq*u)
         f.write(get_hex(x)+"\n")
   f.close()