From: Vlad Pambucol Newsgroups: comp.os.msdos.djgpp,comp.lang.c Subject: Re: trigonometry problem (math.h) Date: Tue, 03 Mar 1998 13:14:13 -0500 Organization: University of Rostock Lines: 30 Message-ID: <34FC4875.8672A6F3@usa.net> References: <34FC314E DOT A9B3F9D6 AT usa DOT net> Reply-To: vlad DOT pambucol AT usa DOT net NNTP-Posting-Host: 198.113.90.106 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I don't follow where is the problem??? float voy; float x, units, second; int angle; ... voy = x * (units/second) * sin(angle); printf("%f",voy); //the angle is in rad. Jesse Meyer wrote: > I am writing some code to determine the vertical velocity of a > projectile. > > The physics equation is voy = x (units/second) * sin(angle) > > I want to design a program that will calculate this given the inital > velocity (x) and the angle. > > I am using DJGPP v2.01 and RHIDE 1.4 > > This is basically a programming question because I am a begginer and all > the books I read don't go into using Trig with C. > > Thanks in advance > Jesse