update
This commit is contained in:
parent
6dfe943d65
commit
588070c130
@ -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
13
c-basic/log.c
Normal 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
24
c-basic/sin_cos_tan.c
Normal 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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user