The inverse of the gradient function. I ve provided versions that work on 1-d vectors, or 2-d or 3-d Arrays. In the 1-d case I offer 5 different methods, from cumtrapz, and an integrated cubic spline, plus several finite difference methods.
In higher dimensions, only a finite difference/linear algebra solution is provided, but it is fully vectorized and fully sparse in its approach. In 2-d and 3-d, if the gradients are inconsistent, then a least squares solution is generated
A MATLAB GUI platform for realizing the radiation pattern of narrowband beamformer with random array geometry. User can specify the array geometry, directions of incoming signals, noise power, and the type of beamformer. Useful for gaining insight about collaborative beamforming in sensor networks and random Arrays. You need both randomarray.fig and randomarray.m to work.
Reads/writes text as a character stream, buffering characters so as to provide for the efficient reading/writing of characters, Arrays, and lines.
The buffer size may be specified, or the default size may be used. The default is large enough for most purposes.
In general, each read request made of a Reader causes a corresponding read request to be made of the underlying character or byte stream. It is therefore advisable to wrap a BufferedReader around any Reader whose read() operations may be costly, such as FileReaders and InputStreamReaders.
Lua is a powerful, fast, lightweight, embeddable scripting language.
Lua combines simple procedural syntax with powerful data description constructs based on associative Arrays and extensible semantics. Lua is dynamically typed, runs by interpreting bytecode for a register-based virtual machine, and has automatic memory management with incremental garbage collection, making it ideal for configuration, scripting, and rapid prototyping.
This program incorporates the FV method for solving the Navier-Stokes equations using 2D, Cartesian grids and the staggered arrangement of variables. Variables are stored as 2D Arrays. SIMPLE method is used for pressure calculation. UDS and CDS are implemented for the discretization of convective terms, CDS is used for the diffusive terms. The boundary conditions are set for the lid-driven cavity flow. Only steady flows are considered.
As a programming language, C is rather like Pascal or Fortran.. Values are stored in variables.
Programs are structured by defining and calling functions. Program flow is controlled using loops, if
statements and function calls. Input and output can be directed to the terminal or to files. Related data
can be stored together in Arrays or structures.
This ar the basic programs that i did in highschool. From very simple to medium programs. From Arrays to backtracking and graphs. Ther are more then 100 programs.