Vous êtes sur la page 1sur 2

regls.

bas

www.boundary-element-method.com

Boundary Element Method Open Source Software in Excel VBA


File / Module(s)
Title
Version(Date) and
History
Description

GLS.xlsm/ regls.bas
Re-runs a fast form of the regls routine (using information obtained from gls) for the same boundary element method but
with a varied boundary condition.
1. (June 2015).
This is a VB source file for solving a general linear system of equations
= + ,

(1a)

where A and B are known matrices and is a known -vector with


+ = for = 1

Interface

Web source of code.


Web source of this guide

(1b)

where the , and are constants with and are never both zero for each i. The evaluation of vectors and is the
solution of the process.
Sub ReGls(n, a_gls, b_gls, perm, xory, alpha, beta, c_new, f_new, x, y)
Input Parameters
Integer n The dimension of the matrices and vectors
Double a_gls(n,n) The matrix A, following row operations and LU factorisation in gls.bas
Double b_gls(n,n) The matrix B, following row operations in gls.bas
Double c_new(n) The vector c
Integer perm(n) The permutation matrix (resulting from the LU factorisation)
Boolean xory(n) The record of column exchanges.
Double alpha(n) The i = 1 . These must be the same as those used in gls.
Double beta(n) The i = 1 . These must be the same as those used in gls.
Double f_new(n) The fi = 1
Output Parameters
Double x(n) The solution vector x
Double y(n) The solution vector y
www.boundary-element-method.com/Excel_VBA/GLS.xlsm
www.boundary-element-method.com/Excel_VBA/regls_bas.pdf

regls.bas
Web source of the
algorithm
Dependent routines
Test problems or
modules tested
Licence
Codes that this may be
used alongside this one
Similar codes that may be
of interest
Applications
Alternative Platforms
Author
References

www.boundary-element-method.com
www.boundary-element-method.com/guides/Numerical Solution of a General Linear System of Equations.pdf
lufbsub.bas from www.numerical-methods.com/LU.xlsm
www.boundary-element-method.com/GLS.xlsm
This is open source; the software may be used and applied within other systems as long as its provenance is appropriately
acknowledged. See the GNU Licence for more information or contact webmaster@boundary-element-method.com .
gls must be used before regls. Both codes can be found in www.boundary-element-method.com/Excel_VBA/GLS.xlsm.
A similar m-file code is available (Matlab/Freemat/Octave/Scilab) is available on
www.boundary-elmenet-method.com/mfiles/regls.m
and a similar code in FORTRAN is available on
www.boundary-element-method.com/fortran/REGLS.FOR
Fortran-Real System GLS
Matlab/Freemat/Octave/Scilab regls
VBA/Visual Basic GLS.xlsm
Stephen Kirkup
1. Numerical Solution of General Linear Systems of Equations
2. The Boundary Element Method in Acoustics
3. www.boundary-element-method.com

Commented [SK1]:

Vous aimerez peut-être aussi