Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

standards , range , accuracy trigonometric functions

RBato
Beginner
3,140 Views

Dear Intel Community

How is standards , range , accuracy trigonometric functions in Intel C++ Compiler ? How is Your advise ?

0 Kudos
66 Replies
Bernard
Valued Contributor I
717 Views

I used only once minimax polynomial where I tried  approximate Gamma function on problematic interval [0.01 <x< 1.0]. For  calculation  Stirling approximation was used. It converged  very well on the interval lying above abscissa point 1.0 , but for the abscissa values below that point it was divergent. In such a case Mathematica 8 calculated minima approximation for problematic range.

 

 

0 Kudos
Jeff_Arnold
Beginner
717 Views

Re: #21. "I've never found an easily accessible documentation of the practical side of this stuff..."

You might consider looking at these two books by Jean-Michel Muller and some members of the group at ENS Lyon. (The name of the research team changes aperiodically.) One of the best collections of floating-point experts anywhere, including some of the major contributors to mpfr. Also look for various journal and conference publications from the group.

Handbook of Floating-Point Arithmetic

Birkhauser Boston, dec. 2009. 572 p. 62 illus., ISBN: 978-0-8176-4704-9

@Book{MullerEtAl2010,
  title = {Handbook of Floating-Point Arithmetic},
  author = {Muller, Jean-Michel and Brisebarre, Nicolas and de Dinechin, Florent and Jeannerod, Claude-Pierre and Lef{\`e}vre, Vincent and Melquiond, Guillaume and Revol, Nathalie and Stehl{\'e}, Damien and Torres, Serge},
  publisher = {{B}irkh\"auser {B}oston },
  pages = {572 },
  note = {{ACM} {G}.1.0; {G}.1.2; {G}.4; {B}.2.0; {B}.2.4; {F}.2.1.,
  ISBN 978-0-8176-4704-9}, year = {2010}, }

Elementary Functions: Algorithms and Implementaton

Springer Science & Business Media, 2006. 288 p, ISBN: 0817644083, 9780817644086

@book{muller2006elementary,
  title={Elementary Functions: Algorithms and Implementation},
  author={Muller, J.M.},
  isbn={9780817644086},
  lccn={2005048094},
  series={Computer Science},
  url={http://books.google.com/books?id=Mx-\_kaANJBEC},
  year={2006},
  publisher={Birkhauser Boston}
}

 

0 Kudos
TimP
Honored Contributor III
717 Views
Thanks. Muller's Elementary Functions is good background. I took the 3 hour free android browse.
0 Kudos
Bernard
Valued Contributor I
717 Views

Those books are very good , but there is another book related to functions approximation "Computer Approximations" by Hart and Cheney.

0 Kudos
Jeff_Arnold
Beginner
717 Views

Computer Approximations by Cheney, Hart et al is a classic text in the field.  It presents much information about the theoretical unpinnings of many of the mathematical techniques which can be used to generate approximations for various functions (e.g, Remez' algorithm).  But it was first published in 1968.  It is completely out of date with respect to software implementation techniques for math libraries on modern processors.

0 Kudos
Bernard
Valued Contributor I
717 Views

>>>But it was first published in 1968.  It is completely out of date with respect to software implementation techniques for math libraries on modern processors.>>>

Yes that is true if you are judging this book in the context of modern math libraries implementations.

0 Kudos
TimP
Honored Contributor III
717 Views
0 Kudos
Bernard
Valued Contributor I
717 Views

Thanks Tim.

 

0 Kudos
TimP
Honored Contributor III
717 Views


Someone notified me that they are blocked from reading google sites (not surprisingly) so I am trying t attach a copy here.

0 Kudos
Bernard
Valued Contributor I
717 Views

Very interesting and informative white paper.

0 Kudos
RBato
Beginner
717 Views

Where x87 were correct ( jobs , industry ) ?

0 Kudos
Bernard
Valued Contributor I
717 Views

Rafał B. wrote:

Where x87 were correct ( jobs , industry ) ?

Are you asking about the specific programming field which used x87 code?

0 Kudos
RBato
Beginner
717 Views

Thank You for Your answer .
Yes my question is about this . I'm interesting where were used x87 incorrect and why too .

0 Kudos
Bernard
Valued Contributor I
717 Views

I think that x87 code was part of some libraries which targeted older CPUs  before the introduction of SSE SIMD unit.

One place where you can see actually source code of such a library is in MASM,  that one specific floating point library is fully written in x87 assembly.

0 Kudos
TimP
Honored Contributor III
717 Views

Intel continues to support x87 libraries and code generation for 32-bit CPUs prior to Pentium 4.  Separate support for Pentium-III features and performance was discontinued a few years ago.

0 Kudos
RBato
Beginner
717 Views

How is relation between x87 and SEE SIMD ?

0 Kudos
TimP
Honored Contributor III
717 Views

Rafał B. wrote:

How is relation between x87 and SEE SIMD ?

You should read some references on this topic, so as to ask more specific questions (if you have any questions pertaining to C or C++ compiler).

0 Kudos
RBato
Beginner
717 Views

thank You for Your answer .

Please indicate information source .

0 Kudos
RBato
Beginner
717 Views

How is smoothing function x87 by AVX 256 / AVX 512 ? 
- errors calculation
- methods
- example
- sources

0 Kudos
TimP
Honored Contributor III
677 Views

Even this one http://en.wikipedia.org/wiki/SSE2 is a starting point if you don't know what aspect of the topic you are interested in.

0 Kudos
Bernard
Valued Contributor I
677 Views

Rafał B. wrote:

How is smoothing function x87 by AVX 256 / AVX 512 ? 

- errors calculation

- methods

- example

- sources

What do you mean? 

Are you referring to this function http://en.wikipedia.org/wiki/Smoothing

0 Kudos
Reply