delorie.com/archives/browse.cgi | search |
From: | horst DOT kraemer AT snafu DOT de (Horst Kraemer) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Problem with asin() |
Date: | Thu, 16 Sep 1999 02:54:16 GMT |
Organization: | [Posted via] Interactive Networx |
Lines: | 23 |
Message-ID: | <37e04893.8381830@news.snafu.de> |
References: | <37DFD832 DOT DFD9BAB1 AT helawann DOT de> |
NNTP-Posting-Host: | n31-168.berlin.snafu.de |
X-Newsreader: | Forte Free Agent 1.11/32.235 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
On Wed, 15 Sep 1999 19:32:34 +0200, Hela Wann <hela AT helawann DOT de> wrote: > I have to calculate an angle with asin() > > why do i not receive the correct value of 44,7°??? > in borland the return value is limited to -pi/e - +pi/2, why???? Not only in Borland C. This is the mathematical definition of ArcSin. What else should it return ? > The code line is: > > dx = asin(alpha/s); asin/acos/atan/atan2 do not return degrees but radians - and sin/cos expect radians as input and not degrees. Regards Horst
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |