APPLICATIONSDIVERS ★ GAUSS|Amstrad Action) ★

GaussApplications Divers
★ Ce texte vous est présenté dans sa version originale ★ 
 ★ This text is presented to you in its original version ★ 
 ★ Este texto se presenta en su versión original ★ 
 ★ Dieser Text wird in seiner Originalfassung präsentiert ★ 

With exam time rapidly approaching, many of you will fmd this computerised method for solving simultaneous equations very useful Any number of unknowns may be found in this faithful reproduction of the Gauss-Jordan elimination method Stuart McColl from Easthall in Glasgow is the man to thank.

The routine will easily solve

2x1 + 4x2 + 6x3 = 18

4x1 + 5x2 + 6x3 = 24

3x1 + x2 - 2x3 = 4

When run, Gauss will prompt you for the number of equations you wish to solve (for the above this would be 3) Next you are asked for the number of variables (again, from the example, this would be 3). Note that the program only uses positional coefficients - it doesn't matter whether the equanon reads 2x1 + 4x2 + 6x3 = 18 or 2x + 4y + 6z = 18; the only input required is 2, 4, 6 and 8 (separated by a tap of the return key)

Gauss works by implementing elementary row operations

1 Reduce coefficient of x1 to 1 in equation one

2 Eliminate x1 from all other equations by multiplying equation one and adding it to the others

3 Repeat this for x2 , x3 and so on

If the resultant matrix is the identity matrix , 1 , the system has a unique solution The result for the earlier example would be printed as

1 0 0 4

0 1 0 -2

0 0 1 3

The first three columns in this example have indeed been reduced to the identity matrix for a three by three system This signifies that a unique solution exists Each row is a reduced equation which is equivalent to the initial equations The results are read as

x1 + 00 + 00 = 4

00 + x2 + 00 = -2

00 + 00 + x3 = 3

If no unique solution exists the results may be of the form:

x1 + 2x2 + 00 = 110

00 + x2 + x3 = 90

This can be rearranged to give one variable in the shape of another The solutions to this example are x1 - 110 - 2x2 , x2 = 90 - x3, x3.

AA#31

★ PUBLISHER: Amstrad Action
★ YEAR: 1988
★ CONFIG: ???
★ LANGUAGE:
★ LiCENCE: LISTING
★ AUTHOR: Stuart McColl (Easthall in Glasgow)

★ AMSTRAD CPC ★ DOWNLOAD ★

Type-in/Listing:
» Gauss    (Amstrad  Action)    LISTING    ENGLISHDATE: 2018-08-04
DL: 225
TYPE: text
SiZE: 3Ko
NOTE: Uploaded by CPCLOV ;

★ AMSTRAD CPC ★ A voir aussi sur CPCrulez , les sujets suivants pourront vous intéresser...

Lien(s):
» Applications » Gauss-Sistem (Amstrad Manía)
» Applications » Gauss
» Applications » Runge und Gauss (CPC Amstrad International)
Je participe au site:
» Vous avez des infos personnel ?
» Vous avez remarqué une erreur dans ce texte ?
» Aidez-nous à améliorer cette page : en nous contactant via le forum ou par email.

CPCrulez[Content Management System] v8.7-desktop/c
Page créée en 459 millisecondes et consultée 973 fois

L'Amstrad CPC est une machine 8 bits à base d'un Z80 à 4MHz. Le premier de la gamme fut le CPC 464 en 1984, équipé d'un lecteur de cassettes intégré il se plaçait en concurrent  du Commodore C64 beaucoup plus compliqué à utiliser et plus cher. Ce fut un réel succès et sorti cette même années le CPC 664 équipé d'un lecteur de disquettes trois pouces intégré. Sa vie fut de courte durée puisqu'en 1985 il fut remplacé par le CPC 6128 qui était plus compact, plus soigné et surtout qui avait 128Ko de RAM au lieu de 64Ko.