ezincarg.c
来自「国外一大学教授讲章」· C语言 代码 · 共 25 行
C
25 行
#include "ezincarg.h" /* global variables -- but private to this file */static double delay, width, cdtds; static int initDone=0; /* initialize source-function parameters */void ezIncArgInit(double the_cdtds, double the_delay, double the_width){ cdtds = the_cdtds; delay = the_delay; width = the_width; initDone = 1; return;}/* calculate source function at given time and location */double ezInc(double time, double location) { if (!initDone) { fprintf(stderr, "ezInc: must call ezIncArgInit before ezInc.\n"); exit(-1); } return exp( -pow( (time - delay - location/cdtds)/width, 2) );}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?