Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!samsung!uunet!munnari.oz.au!mtiame!jep From: jep@mtiame.mtia.oz (Jesper Peterson) Newsgroups: comp.sys.amiga Subject: Re: Mathematical Equation Code.... Message-ID: <1990Dec27.021604.1815@mtiame.mtia.oz> Date: 27 Dec 90 02:16:04 GMT References: <39919@nigel.ee.udel.edu> Organization: Metal Trades Industry Association, Victoria, Australia. Lines: 24 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! Do you mean an interactive calulator utility like "bc" or "dc"? I'm not aware of any PD ones for the Amiga (perhaps someone could rev up Aquarium?) However, the "hoc" utility described in the book "The Unix Programming Environment" by Kernighan & Pike (Prentice-Hall 1984) should suit. The source listing is in the book. It requires a "yacc" ("bison" will do) but is other- wise very portable. To the people going on about the unbalanced parens: lighten up! Jesper. -- ------------------------------------------------------------------------------ USEnet: jep@mtiame.mtia.oz.au UUCP: ...!uunet!munnari!mtiame.oz!jep [...] I had to leave out reality to keep the post clean and to the point. - jeremy@milton.u.washington.edu (Jeremy York) in rec.music.misc