Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!munnari.oz.au!murdu!ariel!rab From: rab@ariel.its.unimelb.edu.au (Richard Alan Brown) Newsgroups: comp.sources.wanted Subject: Re: Equation solver Message-ID: <199@ariel.its.unimelb.edu.au> Date: 8 Aug 90 00:33:48 GMT References: <1990Aug6.184606.4634@stretch.cs.mun.ca> Organization: Computing Services, Melb. Uni. Lines: 24 In article <1990Aug6.184606.4634@stretch.cs.mun.ca> tony4@stretch.cs.mun.ca (Anthony H. Galway) writes: >I am in need of a program that will allow a student to enter an equation >in the form > > > b = 5 > > s = 90 > > w = 12 > > x = b^2 + (s^3/w) > >The program needs to be able to do all basic math functions. In Kernighan and Pike's book `The Unix Operating System', they develop a sophisticated calculator program called 'hoc4'. The back of the book has a full source code listing. I suspect many people have typed this code in by hand, so it may be available near you. If you can't find it locally, one of my colleagues here at Melbourne has typed it in, *and* fixed a few bugs in he code (sloppy mixing of pointer types, &c.), so i could post it if you like. -- Richard Brown | E-mail: pbrown@munda.ph.unimelb.EDU.AU School of Physics | Phone : +61 3 344 5081 University of Melbourne | Fax : +61 3 347 4783 Parkville Victoria AUSTRALIA 3052 | Telex : AA35185