Path: utzoo!attcan!ontmoh!peter From: peter@ontmoh.UUCP (Peter Renzland) Newsgroups: comp.sources.wanted Subject: Re: Equation solver Message-ID: <650089390.15798@ontmoh.UUCP> Date: 8 Aug 90 04:23:10 GMT References: <1990Aug7.183727.16237@uwasa.fi> Organization: Ontario Ministry of Health -- Decision Support, Toronto, Canada Lines: 16 From article <1990Aug7.183727.16237@uwasa.fi>, by ts@uwasa.fi (Timo Salmi LASK): > 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. >> * / - + sin() cos() tan() atan() acos() asin() log() sqrt() etc... > ... rest deleted ... If you have a Unix system, it's easy -- just use the "bc" calculator. If you feed it the above example and then say "w", it will say "60775".