TIP: Click on subject to list as thread! ANSI
echo: z3_pascal
to: Peter Van Dyk
from: John Carragher
date: 1996-06-23 16:11:26
subject: Re: Using Pascal for Maths

-=> Quoting Peter Van Dyk to All <=-

 PVD> Is it possible to create a program in Pascal to solve simutanous
 PVD> equations?  Would it be a very complex program since it might involve
 PVD> multiplying and dividing the equations tomake them equal and to fing
 PVD> the value of x and y.

Peter,

It would not be particularly complicated.  There is a well documented
method called Gaussian Elimination which can be applied to an array of
the coefficients of the equations, which results in successive coefficients
being reduced to zero, until only one non-zero coefficient remains in the
last row. That provides a value for that unknown. The previous row represents
an equation of just two unknowns, one of which is the one already found,
and therefore you can find the second unknown. Each predeceding row contains
one more unknown over what you already know and therfore it can be found.
Thus working backwards, you can ultimately find all unknowns.  The
method is methodical and predictable and quite amenable to being programmed.

John.

... Catch the Blue Wave!
--- Blue Wave/Max v2.12 [NR]
* Origin: Ground Zero BBS - 61 8 325 1822 - V.32bis (3:800/409)
SEEN-BY: 633/267 270
@PATH: 800/409 1 711/808 50/99 635/544 727 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.