Download programs/float_math.c from callensxavier/v10c-dqn-compiler-optimization: direct link, hf CLI and curl.
- Browser
- Download file 249 Bytes
-
https://huggingface.co/callensxavier/v10c-dqn-compiler-optimization/resolve/main/programs/float_math.c
- Command line
-
hf download hf://callensxavier/v10c-dqn-compiler-optimization/programs/float_math.c
-
curl -L -o float_math.c https://huggingface.co/callensxavier/v10c-dqn-compiler-optimization/resolve/main/programs/float_math.c
249 Bytes
| int main() { | |
| double sum=0,x=1; | |
| for(int i=0;i<10000000;i++){ | |
| x=sin(x)*cos(x)+sqrt(x*x+1); | |
| x=fmod(x,10)+0.1; | |
| sum+=x*log(x+1)/exp(x*0.0001); | |
| } | |
| printf("%f\n",sum);return 0; | |
| } | |