delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/15/18:52:56

From: Weiqi Gao <weiqigao AT a DOT crl DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problem with asin()
Date: Wed, 15 Sep 1999 12:49:13 -0500
Organization: CRL Network Services
Lines: 13
Message-ID: <37DFDC19.861C1DAC@a.crl.com>
References: <37DFD832 DOT DFD9BAB1 AT helawann DOT de>
NNTP-Posting-Host: a116022.stl1.as.crl.com
Mime-Version: 1.0
X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.5-15 i586)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hela Wann 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????

The value is given in radians.  To get the degrees you have to do an
alpha * 180.0 / PI.

-- 
Weiqi Gao
weiqigao AT a DOT crl DOT com

- Raw text -


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