RSS Forums RSS
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Views: 2420 | Replies: 3
Reply
Join Date: Jul 2005
Posts: 19
Reputation: mickyboy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
mickyboy mickyboy is offline Offline
Newbie Poster

tan of circle how to get correct results

  #1  
Jul 20th, 2005
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2004
Location: Adelaide, Australia
Posts: 191
Reputation: mnemtsas is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 1
mnemtsas's Avatar
mnemtsas mnemtsas is offline Offline
Junior Poster

Re: tan of circle how to get correct results

  #2  
Jul 20th, 2005
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:
Reply With Quote  
Join Date: Jul 2005
Posts: 19
Reputation: mickyboy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
mickyboy mickyboy is offline Offline
Newbie Poster

Re: tan of circle how to get correct results

  #3  
Jul 21st, 2005
thanks mark
i was trying to turn tan 45=1.6 radians and then convert to degrees the book i have does not make the fact you have to turn say 45 degrees into (radians first) then do tan command that clear.
Reply With Quote  
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation: Comatose is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 108
Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Moderator

Re: tan of circle how to get correct results

  #4  
Jul 22nd, 2005
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
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 12:02 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC