Question: the code for a library function must appear?
Answer: The code for a library function must appear in a program in order for the program to call the library function. Complex mathematical expressions can sometimes be simplified by breaking out part of the expression and putting it in a function.