File: function_data1d.fee

package info (click to toggle)
feenox 1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,068 kB
  • sloc: ansic: 28,856; sh: 7,201; makefile: 556; python: 554; xml: 500
file content (14 lines) | stat: -rw-r--r-- 174 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FUNCTION f(x) INTERPOLATION $1 DATA {
0 0
1 1
2 4
3 3
4 2
}

f_a = vecmin(vec_f_x)
f_b = vecmax(vec_f_x)

PRINT f(1/3*(f_a+f_b))
#PRINT_FUNCTION f MIN f_a MAX f_b NSTEPS 20