Function Tanh

The Tanh function computes a hyperbolic tangent.

Performance:

 

Default processor

Pentium® III processor

Pentium® 4 processor

Itanium® processor

vsTanh (HA version)

52.3

52.2

40.8

11.2

vdTanh (HA version)

112.1

112.1

69.0

14.4

Notes:
1) Units - CPE (Clocks per Element)
2) Performance was measured on "working" interval (double precision: [-20,20]; single precision: [-10,10])
3) Data - vectors of 1000 elements with random generated numbers
4) "Default" means X87 code for all IA-32 processors
5) Performance of "default" version was measured on Pentium® III processor

 
Notes:
1) *        X87 code for all processors
2) **      Pentium® III processor
3) ***    Pentium® 4 processor
4) **** Itanium® processor
5) Logarithmic scale is used for "Vectors Size" axis

Maximal observed error for the whole function domain:

 

Default processor

Pentium® III processor

Pentium® 4 processor

Itanium® processor

vsTanh (HA version)

0.76

0.76

0.50

0.51

vdTanh (HA version)

0.88

0.88

0.79

0.52

Notes:
1) Units - ULP (Units in The Last Place)

Special values:

Function

Input Argument

Result

Default processor

Pentium® III processor

Pentium® 4 processor

Itanium® processor

vsTanh/vdTanh

(HA version)

0

0

+

+

+

+

+/- Inf

+/- 1

+

+

+

+

NaN (Both QNaN and SNaN)

NaN

+

+

+

+

Intel, Pentium, Pentium III, Pentium 4, and Itanium are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

Copyright © 2000-2002, Intel Corporation, All Rights Reserved.