VB6 Source Code

Source code from the past (in the old Visual Basic 6)

Linear System Solver and Determinant v1.10

Awarded as Excellent Code from FreeVBCode.com. This is a linear System Solver that solves the linear system of equations: [A]*{x}={b} for {x} and calculates the Determinant of matrix [A]. It features a user-friendly interface which is limited to 10x10 System dimensions. Yet, the solver itself, which uses the Gauss Elimination Method, can solve systems of (whatever) greater dimensions, too. v1.10 fixes a bug of the first version (v1.00).

Download Source Code


Matrix Inverse and Transpose Calculator v1.10

Awarded as Excellent Code from FreeVBCode.com. This is a program that calculates the Inverse of a Rectangular Matrix [A] (Dimensions N x N) using the Gauss elimination method, the product [A]*[A-1] for verification purposes (must be always equal to Singular Matrix [I]) and also the transpose of Matrix [A]. The interface is limited to 10x10 dimensions, but the solver itself can be used to calculate the Inverse of any Rectangular Matrix, provided the determinant of it is non-zero. v1.10 fixes a bug of the first version (v1.00).

Download Source Code


Numerical Integration (Single variable function)

Awarded as Excellent Code from FreeVBCode.com. This is a program that calculates the definite integral of a single variable function f(x) using numerical methods: The Trapezoidal method, the Midpoint method and the Simpson's method. The program uses the MS Scriptcontrol (msscript.ocx) for evaluating the values of function f(x).

Download Source Code


Polynomial interpolation

Polynomial interpolation is the interpolation of a given data set by a polynomial. Given some data points {xi, yi}, the aim is to find a polynomial which goes exactly through these points. This program calculates the coefficients of that polynomial. Given a set of n data points (xi,yi) where no two xi are the same, one is looking for a polynomial p of degree at most (n-1) with the property: p(xi) = yi for every xi, yi. For the solution of the problem, a linear system of dimensions nxn has to be formed and to be solved. The program features a user-friendly interface which is limited to 10 {xi, yi} data points. Yet, the process itself, can be used for the solution of any problem of (whatever) greater number of data points, too.

Download Source Code


Mean Value and Standard Deviation of function f(x,y) calculation with Monte Carlo Simulation

This program calculates (in fact estimates) the Mean Value and the Standard Deviation of an arbitrary function f(x,y) of two independent normally distributed random variables x and y. The program uses the Monte Carlo Simulation Method. The function f(x,y) is specified in run-time and its values are calculated using the MS ScriptControl (msscript.ocx). Add Component: Microsoft script control 1.0 (msscript.ocx).

Download Source Code