Calculator!

  • Thread starter Thread starter Arpan
  • Start date Start date
A

Arpan

The value of Sin(1), using the Visual Basic function Sin(number) is
0.841470984807897 but the Windows Calculator shows the value of Sin(1)
as 0.017452406437283512819418978516316! Not only this, even the cos,
sin & tan values of other numbers (except for 0), are different! Now
who is right & who is wrong?

Thanks,

Arpan
 
They are both right. The difference is that one expression uses radian
measure for the angle and the other uses degrees. I.e., the sine of 1 radian
= 0.8414....... and the sine of 1 degree = 0.017..... Same for the the
other trig functions.
 
You need to understand the difference between radians and degrees. Put the
calculator at radians after you hit 1 and then sin. You'll get what VB
says. You were doing 1 degree in the calculator while VB was telling you 1
radian. There are 2*pi ~ 6 radians in a circle where as there are 360
degress in a circle. Hence 1 radian is about 60 degrees.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top