mirror of
https://github.com/A2osX/A2osX.git
synced 2024-11-29 02:49:54 +00:00
38 lines
732 B
Plaintext
38 lines
732 B
Plaintext
|
NEW
|
|||
|
AUTO 3,1
|
|||
|
#include <stdio.h>
|
|||
|
#include <math.h>
|
|||
|
|
|||
|
int main(int argc, char *argv[]) {
|
|||
|
|
|||
|
float f1 = 99;
|
|||
|
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
|