Calculator!
Anonymous
Archived from groups: microsoft.public.win2000.general (More info?)
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
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
2
answers
Last reply
More about calculator

Archived from groups: microsoft.public.win2000.general (More info?)
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.
"Arpan" <arpan_de@hotmail.com> wrote in message
news:1124927381.439961.251690@g49g2000cwa.googlegroups.com...
> 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
> 
Archived from groups: microsoft.public.win2000.general (More info?)
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.

George Hester
_________________________________
"Arpan" <arpan_de@hotmail.com> wrote in message
news:1124927381.439961.251690@g49g2000cwa.googlegroups.com...
> 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
>
Ask a new question
Read More
Visual Basic
Microsoft
Windows
Related Resources
 3shoeboxes
 Embedded Visual Basic runtime
 Visual Basic compitability, windows 95 to windows 2000
 Visual Basic
 Microsoft eMbedded Visual Basic
 Microsoft visual basic
 Embbed Visual Basic
 Is Visual basic 8 included on Windows 7?
 Microsoft Embedded Visual Basic Runtime
 Socket for Embedded Visual Basic
 Visual Basic 6.0 Help file Missing
 Visual basic Runtime
 Microsoft embedded visual basic pocket pc
 Windows 2000/Word Visual Basic error
 Runtime di microsof eMbedded visual Basic ????
 Need to download MS embedded visual basic runtime
 Embedded visual basic for H5550
 Visual Basic and Pocket Excel
 Sorting with Visual BASIC
 Embedded visual basic