www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/30/11:56:19

Message-ID: <19991230162131.32477.qmail@hotmail.com>
X-Originating-IP: [207.138.108.48]
From: "=?big5?B?bWtlcm9wcGkgxVGk/atnrFA=?=" <m_keroppi AT hotmail DOT com>
To: <djgpp AT delorie DOT com>
Subject: Re: Inverse trigonometry functions in Djgpp
Date: Thu, 30 Dec 1999 11:18:23 -0500
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Reply-To: djgpp AT delorie DOT com

In radians, multiply by 360, divide by 2pi

==
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