Overview
Comment: | Initial revision |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
d9f0abbba3f7fa6f5970d04041d92914 |
User & Date: | gawthrop@users.sourceforge.net on 1998-08-12 11:09:02 |
Other Links: | branch diff | manifest | tags |
Context
1998-08-12
| ||
11:09:54 |
Taken from NR share library nrpas13 as SVBKSB.PAS and renamed svbksb.p check-in: 86e6eb3260 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
11:09:02 | Initial revision check-in: d9f0abbba3 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
11:08:03 |
Put in pythag routine to compute z = sqrt(y^2 + z^2) (as in book) Save loop index l as ll when jumping from loop - using l itself is undefined check-in: 75f2ff6e3e user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Added mttroot/mtt/bin/trans/p/svbksb.p version [159300dd57].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | PROCEDURE svbksb(u: glmpbynp; w: glnparray; v: glnpbynp; m,n,mp,np: integer; b: glmparray; VAR x: glnparray); { % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Version control history % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % $Id$ % % $Log$ % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% } (* Programs using SVBKSB must define the types TYPE glnparray = ARRAY [1..np] OF real; glmparray = ARRAY [1..mp] OF real; glnpbynp = ARRAY [1..np,1..np] OF real; glmpbynp = ARRAY [1..mp,1..np] OF real; in the main routine. *) VAR jj,j,i: integer; s: real; tmp: glnparray; BEGIN FOR j := 1 TO n DO BEGIN s := 0.0; IF (w[j] <> 0.0) THEN BEGIN FOR i := 1 TO m DO BEGIN s := s+u[i,j]*b[i] END; s := s/w[j] END; tmp[j] := s END; FOR j := 1 TO n DO BEGIN s := 0.0; FOR jj := 1 TO n DO BEGIN s := s+v[j,jj]*tmp[jj]; END; x[j] := s END END; |