Added cos, gamma, and sin; changed log_gamma