The prototype is double
For example:
double cos (double x);
// x is the angle in radians
What do you mean:
" Is there an alternative to the default functions?"?
One alternative is sin/cos tables, a sliderule, paper and pencil.
JUST JOKING!!!
In theory, there is no difference between practice and theory.
In practice, there is.
Yogi Berra