void sincos(double x, List<double> sinp, List<double> cosp) { sinp[0] = math.sin(x); cosp[0] = math.cos(x); }