Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!rex!uflorida!springs.cis.ufl.edu!pm0 From: pm0@springs.cis.ufl.edu (Patrick Martin) Newsgroups: comp.sys.amiga Subject: Re: Mathematical Equation Code.... Message-ID: <26067@uflorida.cis.ufl.EDU> Date: 25 Dec 90 00:02:52 GMT References: <39919@nigel.ee.udel.edu> Sender: news@uflorida.cis.ufl.EDU Organization: UF CIS Dept. Lines: 21 In article <39919@nigel.ee.udel.edu> JK829055@pucal.bitnet (Jim Karczewski, Programmer -- TTR Development, Inc.) writes: > > If anyone has any code in c that will give you a solution to a >Problem like the following PLEASE Mail it to Me!!! > > 3(8*3(cos(4)*7-9)/43+3)+32) > > I have some I was working on, But I have not had time to figure out >what was wrong with it... Thanks! > Why not just take the Taylor's Series of the Cosine function then do the rest of the function as you normally would? Maybe I don't understand your problem fully but if you are getting bad results from the trigonometric functions in the C library then just use a Taylor's series to approximate the Cosine function. cos(x) ~ 1 - (x^2/2!) + (x^5/5!) - (x^7/7!) + ... Hope that's what you were looking for... Pat