Refactor: Rename trig_fn enums COS to COSXX, REAL_COS to COS, document values in trig_fn