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

By H. T. Lau

ISBN-10: 084937376X

ISBN-13: 9780849373763

This can be a large library of c exercises to just do approximately something. the one sore spots are many of the vector and matrix workouts. they're divided up in order that a few extremely simple operations require numerous exercises. after all this used to be 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 simply comprises consistent time-step solvers. The particular functionality part is great, notwithstanding. however, regardless of the restrictions, i've got came upon this to be a gold mine of exercises and a really beneficial publication. i will be able to usually locate stuff the following that's virtually very unlikely to discover in different places.

Show description

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

Best c & c++ books

The C++ Standard Library Extensions: A Tutorial and Reference

TR1 approximately doubles the dimensions of the C++ average library, and it introduces many new amenities or even new types of library parts. TR1 has a few periods, for instance, the place a few nested kinds might or would possibly not exist reckoning on the template arguments. To programmers whose event stops with the normal library, this can be unusual and surprising.

Pro Visual C++/CLI and the .NET 3.5 Platform

Seasoned visible C++/CLI and the . internet three. five Platform is set writing . web functions utilizing C++/CLI. whereas readers are studying the fine details of . web software improvement, they are going to even be studying the syntax of C++, either outdated and new to . internet. Readers also will achieve a very good knowing of the .

Programming with ANSI C++

Programming with ANSI C++ 2/e is punctiliously up-to-date whereas holding the essence of the unique version. It offers an excellent stability among thought and perform via an in-depth assurance of either effortless in addition to complex issues. beginning with an creation to object-oriented paradigm and an outline of C++, it progressively strikes directly to examine intimately very important suggestions akin to sessions, items, services, constructors and destructors, operator overloading, inheritance, polymorphism, and exception dealing with.

Learning OpenCV 3: Computer Vision in C++ with the OpenCV Library

Start within the swiftly increasing box of machine imaginative and prescient with this functional advisor. Written by way of Adrian Kaehler and Gary Bradski, author of the open resource OpenCV library, this e-book presents a radical creation for builders, lecturers, roboticists, and hobbyists. You’ll study what it takes to construct functions that let pcs to "see" and make judgements in accordance with that information.

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

Sample text

Function Parameters: void comsqrt (ar,ai,pr,pi) xr,xi: float; entry: the real part and imaginary part of the complex number, respectively; pr,pi: float *; exit: the real part and imaginary part of the square root, respectively. 0)*bi+br)*2) *O. 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.

Function used: onenrmcol. 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].

Void reascl(f1oat **a, int n, int nl, int n2) { Copyright 1995 by CRC Press, Inc int i, j; float s; for (j=nl; j<=n2; j++) { = o . 0: if (S ! 12 Complex vector and matrix - Multiplication A. comcolcst Replaces part of a column of a matrix with complex elements by a constant complex multiple of that part: a. =xu. , u. 1J IJ' Function Parameters: void comcolcst (l,u,j,ar,ai,xr,xi) 1,u: int; lower and upper bound of the column vector; j: int; column-index of the column vector; ar,ai: float ar[l:ujj], ai[l:ujj]; entry: ar: real part; ai: imaginary part of the column vector; exit: the transformed complex column; xr,xi: float; entry: xr: real part of the multiplication factor; xi: imaginary part of the multiplication factor.

Download PDF sample

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

by Michael

Rated 4.04 of 5 – based on 6 votes
Posted in C C