Fixed a missing variable in atan and missing kwarg in pi.