📄 deriv.awk
字号:
# the file should contain nbtimestep lines, and n results per line# we compute (nbtimestep-1) time derivativesBEGIN { dt=1; n=0; time=0;}{ if(!time) n = $NF; for(j=0; j<n; j++) val[j,time] = $(j+1); time++;}END { for(i=1 ; i<time ; i++){ printf("derivee = "); for(j=0 ; j<n ; j++){ printf("%g ", (val[j,i]-val[j,i-1])/dt); } printf("\n"); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -