bad cos( 0.050000 ) = 0.975000 bad sin( 0.050000 ) = 0.050000 good cos( 0.050000 ) = 0.998750 good sin( 0.050000 ) = 0.049979
Comments:
Declaring a function static
enables you to use a name that might otherwise conflict
with the name of a function in another file.
In this case, the static functions are the ones
that main()
uses,
and the external ones from the math library
are the ones that goodMath
uses.