sin(x), degree or radian?

For function y = sin(x), is x in degree or radian? This was a question I asked students many time when I was teaching. In using a calculator, either one is okay as long as the correct setting is in place. But not in actual scientific computation. Recently, I found a bug in my C++ code where I had a variable in degree, but the internal math library of C++ assumes it is in radian.

Advertisements

Tags: , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: