This commit is contained in:
Mert Gör 🇹🇷 2025-01-06 10:08:06 +03:00
parent 6dfe943d65
commit 588070c130
Signed by: hwpplayer1
GPG Key ID: 03E547D043AB6C8F
3 changed files with 45 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2025-01-06 Mert Gör <mertgor@masscollabs.xyz>
* c-basic/CSD-C-Basic-Book/C.pdf: Sabitler(Literals) page 31
* c-basic/sin_cos_tan.c (main): other mathematical operations like sin cos asin acos tan atan functions
* c-basic/log.c (main): page 30-31 log code
2025-01-03 Mert Gör <mertgor@masscollabs.xyz>
* c-basic/pow.c (main): pow example written

13
c-basic/log.c Normal file
View File

@ -0,0 +1,13 @@
#include <stdio.h>
#include <math.h>
int main()
{
double result;
result = log10(1000);
printf("%f\n", result);
return 0;
}

24
c-basic/sin_cos_tan.c Normal file
View File

@ -0,0 +1,24 @@
#include <stdio.h>
#include <math.h>
int main()
{
double result;
result = sin(3.141592653589793238462643 / 6);
printf("%f\n", result);
result = cos(3.141592653589793238462643 / 3);
printf("%f\n", result);
result = sin(3.141592653589793238462643 / 4) / cos(3.141592653589793238462643 / 4);
printf("%f\n", result);
result = tan(3.141592653589793238462643 / 2);
printf("%f\n", result);
result = tan(3.141592653589793238462643 / 4);
printf("%f\n", result);
return 0;
}