cp2k/tools/scriptmini/scriptmini_eval
Eisuke Kawashima 40b9ef4da9 Fix typo
2020-03-12 16:48:53 +01:00

4 lines
395 B
Text
Executable file

# read input values for the function to be minimized from scriptmini_eval.in
# write the output value of the function to scriptmini_eval.out
# at the end, the values in scriptmini_eval.in will be near the minimum of the objective function (i.e. scriptmini_eval.out will be small)
awk '{printf("%20.12f \n",($1-1)^2+($2-2)^2+($3-3)^2+($4-4)^2+($5-5)^2)}' scriptmini_eval.in > scriptmini_eval.out