Function Cos

The Cos function computes a cosine.

Performance:

 

Default processor

Pentium® III processor

Pentium® 4 processor

Itanium® processor

vsCos (HA version)

42.8

44.8

21.1

7.2

vdCos (HA version)

54.4

58.4

35.8

8.4

Notes:
1) Units - CPE (Clocks per Element)
2) Performance was measured on "working" interval (double precision: [-10000,10000]; single precision: [-10000,10000])
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

vsCos (HA version)

0.80

0.80

0.80

0.50

vdCos (HA version)

0.92

0.92

0.51

0.51

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

vsCos/vdCos

(HA version)

0

1

+

+

+

+

NaN (Both QNaN and SNaN)

NaN (Raise Invalid Exeption for SNaN)

+

+

+

+

+/- Inf

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.