www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/25/19:35:36

Date: Tue, 25 Mar 1997 19:08:42 -0500 (EST)
From: Guess <times9 AT clark DOT net>
To: DBerry1 AT dca DOT gov DOT au
Cc: djgpp AT delorie DOT com
Subject: Re: Newbie troubles with Sin and Cos
In-Reply-To: <0000oqkoqioy.0000nzhphlnh@dca.gov.au>
Message-Id: <Pine.GSO.3.95.970325190640.839C-100000@explorer2.clark.net>
Mime-Version: 1.0
content-length: 313

-> for instance here's the output from a simple prog I did to test my idea
-> Sin of 0 is 0.000000
-> Sin of 1 is 0.841471
-> But using a calculator I get
-> Sin of 0 is 0
-> Sin of 1 is 0.017452
It's cause C does it in radians instead of degrees.
So u gotta convert it first to radians
radians = angle * pi/180

- Raw text -


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