⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 timunfl.c

📁 数值算法库
💻 C
字号:
/*  timunfl.c    CCM mathematics library source code. * *  Copyright (C)  2000   Daniel A. Atkinson    All rights reserved. *  This code may be redistributed under the terms of the GNU general *  public license. ( See the gpl.license file for details.) * ------------------------------------------------------------------------ */#include <time.h>#include "ccmath.h"main(int na,char **av){ unsigned long s;  int i,n; clock_t st,en;  double dt,tms,h;  if(na!=2){ printf("para: count\n"); exit(1);}  n=atoi(*++av);  s=0x5a7d3b28;  setunfl(s);  st=clock();  for(i=0; i<n ;++i) h=unfl();  en=clock();  dt=(en-st)/(double)CLOCKS_PER_SEC;  tms =1.e6*(dt/n);  printf(" %d evaluations in %.3f sec.\n",n,dt);  printf("  %.3e microsec per evaluation\n",tms);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -