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

By H. T. Lau

ISBN-10: 084937376X

ISBN-13: 9780849373763

This can be a large library of c exercises to do exactly approximately whatever. the single sore spots are a number 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 possibly locate that writing their very own is extra effective. additionally, the 2 element boundary worth challenge solvers are very constrained and the DE part in simple terms includes consistent time-step solvers. The exact functionality part is superb, despite the fact that. however, regardless of the constraints, i've got came across this to be a gold mine of workouts and a really worthy publication. i will usually locate stuff right here that's nearly very unlikely to discover somewhere else.

Show description

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

Similar c & c++ books

C Programming: Just the Faq's by Paul S.R. Chisholm, David Hanley, Michael Jones, Michael PDF

For the start to intermediate consumer who wishes a short easy-to-use C reference. The sections of this reference booklet are like journal installments yet with an underlying assumption of continuity. Programming issues are illustrated with real code at any place attainable. All code is ANSI regular C, with occasional notes in areas the place particular compilers have handier methods of doing issues.

Read e-book online C++ Primer PDF

Absolutely up-to-date and recast for the newly published C++11 average, this authoritative and complete creation to C++ may also help you to benefit the language speedy, and to exploit it in glossy, powerful methods. Highlighting today’s most sensible practices, the authors express the best way to use either the center language and its normal library to put in writing effective, readable, and robust code.

New PDF release: Borland C++ Builder: The Complete Reference

C++ Builder five is an built-in improvement enviroment for development standalone, client/server, allotted and Internet-enabled home windows purposes. This source presents an advent to the operation of the Intergrated improvement Enviroment (IDE), some of the instruments, the debugger, the C++ language and libaries.

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

Example text

0 ; *kc=lc; for ( ; lc<=uc; lc++) ( r=onenrmcol(lr,ur,lc,a) ; if (r > max) { max=r: 1 return (max); I I. absmaxmat Copyright 1995 by CRC Press, Inc Computes the absolute value of an element with largest absolute value belonging to a submatrix, and the row and column indices of the element in question (p = max 1 a , , 1, (Ir I k I ur, Ic 5 h 5 uc) and the smallest i for the smallest j such that p = I aij I ). Function Parameters: float absmaxmat (Ir, ur, lc, uc, i,j,a) absmaxmat: delivers for a given matrix a the modulus of an element which is of maximum absolute value, the value of p above; r r : int; lower and upper bound of the row index, respectively; Ic,uc: int; lower and upper bound of the column index, respectively; i : int *; exit: the row and column index of an element for which the modulus is maximal; a: float a[lr:ur, lc:uc].

U. I I Function Parameters: int maxelrnrow (I, u, i,j,a,b,x) maxelmrow: delivers the index of the maximal element after elimination step upon a; 1,u: int; lower and upper bound of the running subscript; i: int; row-index of a; j : int; row-index of b; a, b: float a[i:i, l:u], b[i: i, l:u]; x: float; elimination factor. 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.

Function Parameters: void symresvec (Ir, ur,lc,uc,a,b,c,x) r r : int; lower and upper bound of the row-index, Ir 1 1; Ic,uc: int; lower and upper bound of the column-index, Ic 2 1; a : float a[l:u]; where I = min (Ir(1r-1)/2+lc, Ic(1c-I)R+lr), u = max (ur(ur-1)/2+uc, uc(uc-1)/2+ur) and the (ij)-th element of the symmetric matrix should be given in b: float b[lc:uc]; the vector; x: float; the value of the multiplying scalar; c: float c[lr:ur]; the result a*b+x*c is overwritten on c. 6 Real matrix matrix products A.

Download PDF sample

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

by Richard

Rated 4.91 of 5 – based on 26 votes