public static double4 cos2(this double4 f) => (1 + f.cos()) / 2;
public static double4 sin2(this double4 f) => (1 - f.cos()) / 2;