DEbut TP10

This commit is contained in:
2023-10-03 13:40:45 +02:00
parent fd2b2539d3
commit 1d0f50ba9a
2 changed files with 20 additions and 0 deletions

BIN
DEV1.1/TP10/formule Executable file

Binary file not shown.

20
DEV1.1/TP10/formule.c Normal file
View 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;
}