From: "Steven C. Hendrickson" Newsgroups: comp.os.msdos.djgpp References: Subject: Re: Inverse trigonometry functions in Djgpp Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.3825.400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.3825.400 Message-ID: NNTP-Posting-Host: 216.100.29.51 X-Trace: tw11.nn.bcandid.com 946566574 216.100.29.51 (Thu, 30 Dec 1999 08:09:34 MST) NNTP-Posting-Date: Thu, 30 Dec 1999 08:09:34 MST Organization: bCandid - Powering the world's discussions - http://bCandid.com Date: Thu, 30 Dec 1999 07:05:10 -0800 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com The atan() function,uses radians as argument, and delivers its answer in radians. Steve Hendrickson "Jarkko Kähkönen" wrote in message news:wKza4.591$eq DOT 7079 AT uutiset DOT nic DOT fi... > Atan () - don't work! > Here is a bit of my code: > > float direction; > > direction = atan ( 120 / 90 ); > printf ("%f", direction"); > > And output is this: > 0.927295 > > But with calculator it is: > tan^-1 (120 / 90) = 53.1301023... > > Is atan () right inverse tan function? > > Greetings, > Jarkko DOT Kahkonen AT mbnet DOT REMOVETHAT DOT fi > >