delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/26/06:32:41

From: e8725229 AT stud1 DOT tuwien DOT ac DOT at (godzilla)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Newbie troubles with Sin and Cos
Date: Wed, 26 Mar 97 07:17:30 GMT
Organization: Vienna University of Technology, Austria
Lines: 6
Message-ID: <5haiia$ajc_001@tuwien.ac.at>
References: <0000oqkoqioy DOT 0000nzhphlnh AT dca DOT gov DOT au>
NNTP-Posting-Host: tubiomed.tuwien.ac.at
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

The problem IMHO not the format, but that your calculator seperates the circle 
in 360 degrees (it semms to me), but C (and most  other Languages) seperate a 
circle in 2 PI radians. so if you have X degrees you get the corresponding 
radians-value by multiplying X with 2*Pi/360. I hope that fixes the problem.
greetings 
godzilla

- Raw text -


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