Tan(x) en C

waterminator Messages postés 11 Date d'inscription   Statut Membre Dernière intervention   -  
scriptiz Messages postés 1424 Date d'inscription   Statut Membre Dernière intervention   -
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

A voir également:

1 réponse

scriptiz Messages postés 1424 Date d'inscription   Statut Membre Dernière intervention   425
 
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
0