new refine entry for the  atan2 function

This resolves #8272
You can access `pi` from the singleton registry: use `S.Pi`.