home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!bnr.co.uk!uknet!mcsun!sun4nl!relay.philips.nl!prle!hpas5!otterw
- From: otterw@prl.philips.nl (otter den w)
- Newsgroups: sci.math
- Subject: Re: a + bx + cx^2 + dx^3
- Message-ID: <otterw.725037245@hpas5>
- Date: 22 Dec 92 15:14:05 GMT
- References: <BzMKwE.GC2@fig.citib.com>
- Sender: news@prl.philips.nl (USENET News System)
- Organization: Philips Research Laboratories Eindhoven, Netherlands
- Lines: 35
-
- ghica@fig.citib.com (Renato Ghica) writes:
-
- >does anyone know of a c/c++ algorithm to solve equations of
- >this type for a range of x's ? At some ftp site maybe?
-
- >thanks.
-
- Well, this problem can be solved very simple:
-
- a x^3 + b x^2 + c x + d = 0
-
- Substitute x = y - b/3a
-
- This way we get rid of the quadratic term. We end up with
- something like this:
-
- a y^3 + p y + q =0
-
- Now substitute y = z - p/3az
-
- After some rewriting, multiplying by z^3 and replacing z^3 by w
- we end up with a quadratic equation. I guess you can solve that
- one.
-
- Performing all substitutions to return at x we end up with 6
- solutions, of which a couple are identical. That's all.
-
-
-
- I've heard there is a simular method for fourth-order
- polynomials. Does anybody out there know this method?
-
-
- __________________________________________________________________
- Wouter den Otter, otterw@prl.philips.nl
-