Tan(x) en C

Bonjour,

je recherche une fonction qui calculerai tan(x) (ou je changerai a ma guise x evidemment ^^)
pouvez vous m'aider?

je ne sais pas si cela a une importance mais je travail avec un float

1 réponse

  • Votes
  • Date
  • Date décroissante
  1. La fonction tan(double x) existe bien :

    http://www.acm.uiuc.edu/webmonkeys/book/c_guide/2.7.html

    N'oublie pas de faire un include de math.h ;)

    Et fait attention au fait que x doit être un angle en radians et non en degrés !
    "The most successful method of programming is to begin a program as simply as possible, test it, and then add to the program until it performs the required job." -- PDP8 handbook, Pg 9-64