The moral of the story should be "Pay attention in school." And not "everyone is winging it [so here's a blog so I feel better about winging it]". Because in fact, a lot of us are NOT winging it, we are working very very hard to learn.
EDIT: If you want an implementation of these functions to fit your needs, perhaps understand your problem a little better and define your needs, such as precision and tolerance and speed and memory usage. You know: engineering work. There are literally a dozen algorithms a google away or in an actual book. We've been computing these functions for over 60 years electronically (and longer analog), and I guarantee there is an implementation that fits your constraints.