|
|
|
|
By default the built-in trig functions work in radians. If you want to use degrees, first convert the user input from degrees to radians before calling the cos() function. You should not need to declare the functions yourself, they are already declared in the <cmath> header. |