public static Primitive ArcCos(Primitive cos) { return System.Math.Acos(System.Math.Min(1.0, System.Math.Max(-1.0, cos))) / deg2rad; }