Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Views: 2420 | Replies: 3
![]() |
•
•
Join Date: Jul 2005
Posts: 19
Reputation:
Rep Power: 4
Solved Threads: 0
hello all i need to get the tangent of a circle command into a programe as follows tan (angle of degree/2)
trying just 90degrees /2 =45degrees tan(45) in intermediate window i get 1.619 which is radians , to convert to degrees its 180/pi (3.142) but this gives result of 92.806. rather than 1
if using windows calculator tan 45 =1 which is correct, but have tried all ways to try and get tan command to give the same result , so how can this be done.
thank you
trying just 90degrees /2 =45degrees tan(45) in intermediate window i get 1.619 which is radians , to convert to degrees its 180/pi (3.142) but this gives result of 92.806. rather than 1
if using windows calculator tan 45 =1 which is correct, but have tried all ways to try and get tan command to give the same result , so how can this be done.
thank you
•
•
Join Date: Jul 2004
Location: Adelaide, Australia
Posts: 191
Reputation:
Rep Power: 5
Solved Threads: 1
The tan function is expecting the argument to be in radians so convert your 45 degrees to radians before doing the tan. You can confirm this in windows calculator by setting the units to RAD and doing a tan of 45. Hey presto it gives you 1.619 :mrgreen:
Mark Nemtsas
Time and Billing Software - Time Tracking Software - Roller Shutters - Roller Blinds -
Baby Books
Time and Billing Software - Time Tracking Software - Roller Shutters - Roller Blinds -
Baby Books
•
•
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation:
Rep Power: 7
Solved Threads: 108
Nice Response there mnemtsas, and should you need any further information regarding Tan (or other commands): http://www.int.gu.edu.au/courses/300...htm#Heading197
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)






Linear Mode