2022-12-30 16:29:57 +00:00
|
|
|
|
NEW
|
|
|
|
|
AUTO 3,1
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <math.h>
|
|
|
|
|
|
|
|
|
|
int main(int argc, char *argv[]) {
|
|
|
|
|
|
2023-01-27 13:32:13 +00:00
|
|
|
|
printf("one " \
|
|
|
|
|
"two\n");
|
|
|
|
|
float f1 = 99;
|
2022-12-30 16:29:57 +00:00
|
|
|
|
float SQR=sqr(f1);
|
|
|
|
|
printf("f1=%e, sqr(f1)=%e\r\n", f1, SQR);
|
|
|
|
|
getchar();
|
|
|
|
|
|
|
|
|
|
float f2 = PI / 3;
|
|
|
|
|
printf("f2=%e\r\n", f2);
|
|
|
|
|
float COSPI3=cos(f2);
|
|
|
|
|
printf("COSPI3=%e\r\n", COSPI3);
|
|
|
|
|
|
|
|
|
|
float PWR=pwr(16, 3);
|
|
|
|
|
printf("PWR=%e\r\n", PWR);
|
|
|
|
|
|
|
|
|
|
float BILLION=1000000000; //9E6E6B2800
|
|
|
|
|
printf("BILLION=%e %h%h%h%h%h\r\n", BILLION, BILLION);
|
|
|
|
|
|
|
|
|
|
float a = 66 / 3;
|
|
|
|
|
printf("a=%e\r\n", a);
|
|
|
|
|
|
|
|
|
|
a=a+1;
|
|
|
|
|
printf("a=%e\r\n", a);
|
|
|
|
|
|
|
|
|
|
float mul=256*128;
|
|
|
|
|
printf("mul=%e\r\n", mul);
|
|
|
|
|
|
|
|
|
|
puts("Press a key");
|
|
|
|
|
getchar();
|
|
|
|
|
}
|
|
|
|
|
MAN
|
|
|
|
|
TEXT root/ctest/testf.c
|