APL/APL1.1/TP10/formules.c

15 lines
401 B
C
Raw Normal View History

2021-10-05 13:48:15 +02:00
#include<stdio.h>
#include<stdlib.h>
2021-10-05 14:15:08 +02:00
#include<math.h>
2021-10-05 13:48:15 +02:00
int main(int argc, char * argv[]) {
2021-10-05 14:15:08 +02:00
printf("sqrt(ln(0.5)) = %lf\n", sqrt(log(0.5)));
printf("sin(pi/6) = %lf\n", sin(3.1415926535898/6));
printf("arctan(13²) = %lf\n", atan(pow(13, 2)));
printf("(e^-1)⁴ = %lf\n", pow(exp(-1), 4));
printf("ln(-3) = %lf\n", log(-3));
printf("sqrt(2)² = %lf\n", pow(sqrt(2), 2));
2021-10-05 13:48:15 +02:00
return EXIT_SUCCESS;
}