By Jean-Michel Muller

This textbook provides the options and instruments essential to comprehend, construct, and enforce algorithms for computing ordinary capabilities (e.g., logarithms, exponentials, and the trigonometric functions).  Both undefined- and software-oriented algorithms are incorporated, besides matters regarding exact floating-point implementation.  This 3rd variation has been up to date and accelerated to include the newest advances within the box, new straight forward functionality algorithms, and serve as software.
After a initial bankruptcy that in brief introduces a few primary options of machine mathematics, corresponding to floating-point mathematics and redundant quantity structures, the textual content is split into 3 major elements.  Part I considers the computation of trouble-free capabilities utilizing algorithms in line with polynomial or rational approximations and utilizing table-based equipment;  the ultimate bankruptcy during this part bargains with simple ideas of multiple-precision mathematics.  Part II is dedicated to a presentation of “shift-and-add” algorithms (hardware-oriented algorithms that use additions and shifts only).  Issues regarding accuracy, together with diversity aid, upkeep of monotonicity, and proper rounding, in addition to a few examples of implementation are explored partly III.  Numerous examples of command strains and entire courses are supplied all through for numerous software program applications, together with Maple, Sollya, and Gappa.  New to this version are an in-depth assessment of the IEEE-754-2008 common for floating-point mathematics; a piece on utilizing double- and triple-word numbers; a presentation of latest instruments for designing exact functionality software program; and a piece at the Toom-Cook kinfolk of multiplication algorithms.
The innovations offered during this booklet should be of curiosity to implementers of effortless functionality libraries or circuits and programmers of numerical functions.  Additionally, graduate and complicated undergraduate scholars, execs, and researchers in medical computing, numerical research, software program engineering, and desktop engineering will locate this an invaluable reference and resource.
PRAISE FOR earlier EDITIONS
[T]his publication appears like a necessary reference for the specialists (which i am not).  More importantly, this can be an attractive booklet for the curious (which I am).  In this situation, you will likely research many attention-grabbing issues from this publication.  If you educate numerical research or approximation thought, then this publication provides you with a few strong examples to debate in class." ― MAA studies (Review of moment Edition)
"The wealthy content material of principles sketched or offered in a few aspect during this e-book is supplemented by means of a listing of over 300 references, such a lot of them of 1980 or newer.  The publication additionally comprises a few correct usual programs." ― Zentralblatt MATH (Review of moment Edition)
I imagine that the publication could be very precious to scholars either in numerical research and in laptop technology.  I chanced on [it to be] good written and containing a lot attention-grabbing fabric, more often than not disseminated in really expert papers released in really expert journals tough to find." ― Numerical Algorithms (Review of First Edition)

Show description

Read Online or Download Elementary Functions. Algorithms and Implementation PDF

Best algorithms books

Algorithms For Interviews

Algorithms For Interviews (AFI) goals to aid engineers interviewing for software program improvement positions in addition to their interviewers. AFI comprises 174 solved set of rules layout difficulties. It covers center fabric, corresponding to looking out and sorting; common layout rules, equivalent to graph modeling and dynamic programming; complex themes, resembling strings, parallelism and intractability.

Scalable Optimization via Probabilistic Modeling: From Algorithms to Applications (Studies in Computational Intelligence, Volume 33)

This booklet focuses like a laser beam on one of many preferred subject matters in evolutionary computation during the last decade or so: estimation of distribution algorithms (EDAs). EDAs are an incredible present procedure that's resulting in breakthroughs in genetic and evolutionary computation and in optimization extra in most cases.

Abstract Compositional Analysis of Iterated Relations: A Structural Approach to Complex State Transition Systems

This self-contained monograph is an built-in research of normal structures outlined by means of iterated kinfolk utilizing the 2 paradigms of abstraction and composition. This contains the complexity of a few state-transition structures and improves figuring out of advanced or chaotic phenomena rising in a few dynamical platforms.

Estimation of Distribution Algorithms: A New Tool for Evolutionary Computation

Estimation of Distribution Algorithms: a brand new software for Evolutionary Computation is dedicated to a brand new paradigm for evolutionary computation, named estimation of distribution algorithms (EDAs). This new type of algorithms generalizes genetic algorithms via exchanging the crossover and mutation operators with studying and sampling from the likelihood distribution of the easiest members of the inhabitants at every one new release of the set of rules.

Extra resources for Elementary Functions. Algorithms and Implementation

Example text

This requires n multiplications and n additions if we use conventional operations, or n fused multiply–add operations. See Chapter 5 for more information. 1 Basic Notions of Floating-Point Arithmetic 15 Hence, if the floating-point computation of x 2 − y 2 is implemented as RN(RN(x 2 ) − y × y), then the obtained result will be less than 0 and computing its square root will generate a NaN, whereas the exact result is 0. The problem does not occur if we do not use the FMA operation: the rounding functions are monotonic, so that if |x| ≥ |y| then the computed value of x 2 will be larger than or equal to the computed value of y 2 .

2) Ti , Ti • compute p∗ = n ai Ti . i=0 The proof is rather obvious and can be found in most textbooks on numerical analysis [202]. Some sequences of orthogonal polynomials, associated with simple weight functions w, are well known, so there is no need to compute them again. Let us now present some of them. More information on orthogonal polynomials can be found in [1, 203]. 1 Legendre Polynomials • weight function: w(x) = 1; • interval [a, b] = [−1, 1]; • definition: ⎧ T (x) = 1 ⎪ ⎨ 0 T1 (x) = x ⎪ ⎩ T (x) = 2n − 1 x T (x) − n − 1 T (x); n n−1 n−2 n n • values of the scalar products: Ti , T j = ⎧ ⎨0 if i = j 2 ⎩ otherwise.

Algorithm 11 performs the addition of two n-digit numbers x = xn−1 xn−2 · · · x0 and y = yn−1 yn−2 · · · y0 represented in radix r with digits between −a and a, where a ≤ r − 1 and13 2a ≥ r + 1. Algorithm 11 Avizienis’ algorithm Input : x = xn−1 xn−2 · · · x0 and y = yn−1 yn−2 · · · y0 Output : s = sn sn−1 sn−2 · · · s0 = x + y 1. in parallel, for i = 0, . . , n − 1, compute ti+1 (carry) and wi (intermediate sum) satisfying: ⎧ ⎧ ⎪ ⎪ ⎨ +1 if xi + yi ≥ a ⎪ ⎪ ⎨t = 0 if −a + 1 ≤ xi + yi ≤ a − 1 i+1 ⎪ ⎩ −1 if x + y ≤ −a ⎪ i i ⎪ ⎪ ⎩ wi = xi + yi − r × ti+1 .

Download PDF sample

Rated 4.64 of 5 – based on 12 votes