Aracılığıyla paylaş


cos, cosf, cosh, coshf

Kosinüsü hesaplamak (cos veya cosf) ya da hiperbolik kosinüsü (cosh veya coshf).

double cos( 
   double x 
);
float cos(
   float x 
);  // C++ only
long double cos(
   long double x
);  // C++ only
float cosf( 
   float x 
);
double cosh( 
   double x 
);
float cosh(
   float x 
);  // C++ only
long double cosh(
   long double x
);  // C++ only
float coshf(
   float x 
);

Parametreler

  • x
    Radyan cinsinden açıdır.

Dönüş Değeri

Kosinüs ya da hiperbolik kosinüsü x.x 263, Eşit veya daha büyük ya da –263, bir arama sonucuna anlam kaybına eşit veya daha az cos oluşur.

Sonuç olarak çok büyükse, bir cosh veya coshf arama işlevini verir HUGE_VAL ve ayarlar errno için ERANGE, varsayılan olarak.

Girdi

seh özel durumu

Matherr özel durum

± QNAN,IND

Hiçbiri

_DOMAIN

± ∞ (cosf, cos)

INVALID

_DOMAIN

x ≥ 7.104760e+002 (cosh, coshf)

INEXACT+OVERFLOW

OVERFLOW

Notlar

C++ verir, aşırı, aşırı çağırabileceğiniz şekilde cos ve cosh.c programında, cos ve cosh her zaman alır ve bir çift döndürür.

Gereksinimler

Yordamı

Gerekli başlık

cos, cosh, cosf, coshf

<math.h>

Ek uyumluluk bilgileri için bkz: Uyumluluk giriş.

Örnek

Örneğe bakın sin, sinf, sinh, sinhf.

.NET Framework Eşdeğeri

Ayrıca bkz.

Başvuru

Kayan nokta türü desteği

ACOS, acosf

ASİN, asinf

atan, atanf, atan2, atan2f

_matherr

sin, sinf, sinh, sinhf

Tan, tanf, tanh, tanhf

_CIcos