Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!uunet!fernwood!portal!cup.portal.com!thad From: thad@cup.portal.com (Thad P Floryan) Newsgroups: comp.sys.amiga Subject: Re: Mathematical Equation Code.... Message-ID: <37204@cup.portal.com> Date: 24 Dec 90 10:11:45 GMT References: <39919@nigel.ee.udel.edu> Organization: The Portal System (TM) Lines: 26 JK829055@pucal.bitnet (Jim Karczewski, Programmer -- TTR Development, Inc.) in <39919@nigel.ee.udel.edu> 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! Sheesh. If ANYONE has "C" code to solve that, their compiler is broken! :-) Let's look at your formula more closely: 3(8*3(cos(4)*7-9)/43+3)+32) ^ ^ ^ ^ ^ ^ ^ | | | | | | | | | | +----+-----+---+--- 4 ")" | | | +---+---+---------------------3 "(" Do you wanna try it again? And don't forget "extern double cos();" and to either declare or typecast your variables (and constants) as "double". Thad Floryan [ thad@cup.portal.com (OR) ..!sun!portal!cup.portal.com!thad ]