home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.scheme
- Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!math.fu-berlin.de!zrz.tu-berlin.de!hahn.informatik.hu-berlin.de!blume
- From: blume@news@informatik.hu-berlin.de (Matthias Blume)
- Subject: Re: Simplification
- Message-ID: <OQI5HOL@hp832.informatik.hu-berlin.de>
- Originator: blume@euklid
- Sender: news@hp832.informatik.hu-berlin.de (H.Boehme U.Kunitz)
- Reply-To: blume@news@informatik.hu-berlin.de (Matthias Blume)
- Organization: Humbolt University, Department of Computer Science
- References: <1992Jul25.115115.27145@wuecl.wustl.edu>
- Date: Tue, 28 Jul 1992 08:11:47 GMT
- Lines: 51
-
-
- In article <1992Jul25.115115.27145@wuecl.wustl.edu>, ppc1@cec1.wustl.edu (Peter Pui Tak Chiu) writes:
- |>
- |> hi everyone,
- |>
- |> i have a real naive question:
- |>
- |> how to do symbolic simplification using scheme, lisp or anything...?
- |>
- |> what i mean is symbolic simplification like MATHEMATICA.
- |>
- |> here are some examples:
- |>
- |> (* a (+ b (/ c a))) ==> (+ (* a b) c)
- |> (+ (* a b) (* a c)) ==> (* a (+ b c))
- |>
- |> these are just very simple cases and are intended to explain what i mean...
- |> i want to know a way to find the "simplest form" of any algebric expression.
- |> not only those which are as simple as the above.
- |>
- |> can anyone tell me how to do it or refer me to some books that talk about it?
- |>
- |> thanks in advance
- |>
- |> peter
- |>
-
- At the moment I don't have a book at hand for advise. But consider the following
- remark:
-
- There is no strict definition of what is simple. For instance
-
- (f(x) + g(x))^3
-
- may be considered ``simple'' for its brevity, while
-
- f(x)^3 + 3*f(x)^2*g(x) + 3*f(x)*g(x)^2 + g(x)^3
-
- may be considered ``simple'' for the possibility to apply further operators like
- INT(egral) or something like that.
- In fact, simplification, whatever it means, is the most difficult part in every
- formula manipulation system, so you cannot expect a quick, short and exhaustive
- answer to your ``real naive'' question.
-
- In fact, the trouble is not, how to do it in any particular programming language
- (though LISP and Scheme are a good choice), but how to do it at all!
-
- --
- -- m.b
- Matthias Blume, blume@informatik.hu-berlin.de,
- Humboldt-Uni zu Berlin, FB 16 (Informatik), [Dept. of Computer Science]
-