www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/30/10:24:24

From: "Steven C. Hendrickson" <hendrick AT pe DOT net>
Newsgroups: comp.os.msdos.djgpp
References: <wKza4.591$eq DOT 7079 AT uutiset DOT nic DOT fi>
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: <OAKa4.29656$Ym1.1125964@tw11.nn.bcandid.com>
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" <jarkko DOT kahkonen AT mbnet DOT fi> 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
>
>


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019