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

By H. T. Lau

It is a large library of c workouts to just do approximately something. the one sore spots are the various vector and matrix workouts. they're divided up in order that a few extremely simple operations require a number of exercises. in fact this was once performed for flexibility, yet a few may well locate that writing their very own is extra effective. additionally, the 2 element boundary worth challenge solvers are very constrained and the DE part purely comprises consistent time-step solvers. The particular functionality part is superb, in spite of the fact that. however, regardless of the restrictions, i've got came across this to be a gold mine of exercises and a really beneficial e-book. i will be able to usually locate stuff right here that's virtually very unlikely to discover in other places.

Show description

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

Best c & c++ books

A Numerical Library in C for Scientists and Engineers

This can be a large library of c workouts to do exactly approximately whatever. the single sore spots are a few of the vector and matrix workouts. 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.

Objects, Abstraction, Data Structures and Design: Using C++

Imagine, Then CodeWhen it involves writing code, training is important to luck. prior to you can start writing winning code, you must first paintings via your concepts and study the predicted functionality of your layout. Thats why Elliot Koffman and Paul Wolfgangs gadgets, Abstraction, info buildings, and layout: utilizing C++ encourages you to imagine, Then Code, that can assist you make stable judgements in these serious first steps within the software program layout procedure.

Algorithms in a nutshell

Developing strong software program calls for using effective algorithms, yet programmers seldom take into consideration them until eventually an issue happens. This up to date variation of Algorithms in a Nutshell describes a great number of latest algorithms for fixing various difficulties, and is helping you choose and enforce the correct set of rules to your needs—with simply enough math to allow you to comprehend and research set of rules functionality.

Extra resources for A Numerical Library in C for Scientists and Engineers

Sample text

U). Function Parameters: void elmrowcol (I, u, ij,a, b,x) 1,u: int; lower and upper bound of the running subscript; i: int; row-index of a; Copyright 1995 by CRC Press, Inc j : int; column-index of b; a,b: float a[i:i,l:u], b[l:u,j~], when a=b then correct elimination is guaranteed only when the row and column are disjunct; x: float; elimination factor. void elmrowcol(int 1, int u, int i, int j, float **a, float **b, float x) I for (; lc=u; 1++) a[il [ll += b[ll [jl*x; 1 J. , 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.

17 Complex vector and matrix - Scaling A. comscl Scales a sequence of columns, some complex, others pure real of an n-rowed matrix a. The real and imaginary components of the complex columns, and the real elements of the pure real columns are stored in succession in columns n l to n2 of the matrix a. The complex and pure real columns of the original matrix may be distinguished by inspection of the values stored in locations n l to n2 of the real vector im. ,n) where j runs through the column suffices of the stored columns of a.

5; ? h : -h; C. carpol Determines the polar form of a complex number: obtains r, c=cos$ and s=sin$ where ar+ai*i=reiO. Function Parameters: void carpol (ar,ai,r,c,s) ar,ai: float; entry: the real part and imaginary part of the complex number, respectively; r,c,s: float *; exit: the modulus of the complex number is delivered in r and the cosine and the sine of the argument are delivered in c and s, respectively; when ar=ai=O then c = I and r=s=O. 19 Complex dyadic operations A. commul Forms the product of two complex numbers: rr+ri*i = (ar+ai*i)(br+bi*i).

Download PDF sample

Rated 4.01 of 5 – based on 36 votes

Related posts