This is a very rough implementation of some of the standard math library (libm) functions in pure julia. Much of it is based on openlibm, which in turn is based around fdlibm.
You probably don't want to use this code directly, but you might find it of interest to understand how math functions work under the hood.