mp_rational: implement sin/cos.