DEbut TP10
This commit is contained in:
BIN
DEV1.1/TP10/formule
Executable file
BIN
DEV1.1/TP10/formule
Executable file
Binary file not shown.
20
DEV1.1/TP10/formule.c
Normal file
20
DEV1.1/TP10/formule.c
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
|
int main(void) {
|
||||||
|
double rep1,rep2,rep3,rep4,rep5,rep6;
|
||||||
|
rep1=sqrt(fabs(log(0.5)));
|
||||||
|
rep2=sin(M_PI/6.0);
|
||||||
|
rep3=atan(pow(13,2));
|
||||||
|
rep4=pow(exp(-1),4);
|
||||||
|
rep5=log(-3);
|
||||||
|
rep6=pow(sqrt(2),2);
|
||||||
|
printf("%f\n",rep1);
|
||||||
|
printf("%f\n",rep2);
|
||||||
|
printf("%f\n",rep3);
|
||||||
|
printf("%f\n",rep4);
|
||||||
|
printf("%f\n",rep5);
|
||||||
|
printf("%f\n",rep6);
|
||||||
|
return EXIT_SUCCESS;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user