delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/29/23:23:26

Message-ID: <386ADB08.76641F56@caresystems.com.au>
Date: Thu, 30 Dec 1999 14:09:44 +1000
From: leon <Leon AT caresystems DOT com DOT au>
X-Mailer: Mozilla 4.7 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Inverse trigonometry functions in Djgpp
References: <wKza4.591$eq DOT 7079 AT uutiset DOT nic DOT fi>
Reply-To: djgpp AT delorie DOT com

"Jarkko Kähkönen" wrote:

> 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

what are the input units for Atan() ? eg radians, degrees?


- Raw text -


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