Download A Numerical Library in C for Scientists and Engineers by H. T. Lau PDF

By H. T. Lau

This can be a large library of c exercises to do exactly approximately something. the one sore spots are a few of the vector and matrix exercises. they're divided up in order that a few extremely simple operations require numerous workouts. after all this was once performed for flexibility, yet a few may well locate that writing their very own is extra effective. additionally, the 2 aspect boundary price challenge solvers are very restricted and the DE part in simple terms includes consistent time-step solvers. The detailed functionality part is superb, despite the fact that. however, regardless of the restrictions, i've got came across this to be a gold mine of workouts and a really worthwhile booklet. i will be able to usually locate stuff the following that's virtually most unlikely to discover somewhere else.

Show description

Read Online or Download A Numerical Library in C for Scientists and Engineers PDF

Similar c & c++ books

Learn the MFC C++ Classes

This booklet teaches introductory programmers who're already acquainted with object-oriented programming and C++ how one can use the MFC library.

Beginning C for Arduino: Learn C Programming for the Arduino

Starting C for Arduino, moment variation is written in case you don't have any previous adventure with microcontrollers or programming yet want to scan and study either. up-to-date with new initiatives and new forums, this booklet introduces you to the c program languageperiod, reinforcing each one programming constitution with an easy demonstration of the way you should use C to regulate the Arduino relatives of microcontrollers.

Additional info for A Numerical Library in C for Scientists and Engineers

Sample text

0 ; *k=l; for ( ; l<=u; I++) { r=fabs(a[ l l [ j I ) ; if (r > max) { max=r: D. infnrmmat Computes the oo-norm of a submatrix and determines the index of the row whose 1-norm is equal to the oo-norm of the submatrix: Copyright 1995 by CRC Press, Inc and the smallest b such that Function Parameters: float infnrmmat (Ir, ur, lc, uc, kr,a ) infnrmmat: delivers the a-norm of the matrix a, the value of p above; r r : int; lower and upper bound of the row index, respectively; lc,uc: int; lower and upper bound of the column index, respectively; b : int *; exit: the value of b above; a: float a[lr:ur, lc:uc].

8 Real vector and matrix - Interchanging A. ,u). Function Parameters: void ichvec (I, u,shift,a) 1,u: int; lower and upper bound of the running subscript; shift: int; index-shifting parameter; Copyright 1995 by CRC Press, Inc a: float a[p:q]; p and q should satisfy: p sf,q 2 u, p ll+shift, q qlu+shift. void ichvec(int 1, int u, int shift, float a[]) { float r; for 1 ( ; lc=u; I++) { r=a[ll ; a [l]=a [l+shiftl; a [l+shiftl=r; I B. , u). Function Parameters: void ichcol (I, u,i,j,a) I,u: int; lower and upper bound of the running subscript; i,j: int; column-indices of a; a: float a[l:u,p:q]; p and q should satisfy: p li, p 5 , q 2 i, q 2 j .

Commatvec Forms the inner product of part of a row of a matrix and part of a vector, both having complex elements: Function Parameters: void commatvec (1,u, i,ar,ai,br, bi,rr,ri) 1,u: int; lower and upper bound of the vectors; i: int; the row index of a r and ai; ar, ai: float ar[i:i, l:u], ai[i: i, I: u]; entry: ar: real part and ai: imaginary part of the matrix; br, bi: float br[l:u],bi[l:u]; entry: br: real part and bi: imaginary part of the vector; i : float *; IT:the real part and exit: ri: the imaginary part of the scalar product.

Download PDF sample

Rated 4.12 of 5 – based on 49 votes