Cos

double cos(double x)

Funkcja cos() zwraca cosinus kąta podanego w radianach.

Przykład


#include <stdio.h>
#include <math.h>

#define PI 3.14159265

int main ()
{
  double param, result;
  param = 45;
  result = cos (param*PI/180);
  printf ("Cosine of %lf degrees is %lf\n", param, result );
  return 0;
}


Zobacz też:

Informacje
Ostatnia modyfikacja 20-12-2007 16:18 Ostatni autor Coldpeer
Ilość wyświetleń 4521 Wersja 5
Komentarz

Copyright © 2000-2006 by Coyote Group 0.9.3-pre3
Czas generowania strony: 0.0180 sek. (zapytań SQL: 9)