File: print_vector.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 (18 lines) | stat: -rw-r--r-- 286 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
VECTOR x[3]
VECTOR y[3]
VECTOR z[3]
VECTOR large[12]

x[i] = 1/1
y[i] = 1/i
z[i] = 1/i^2
large[i] = i

PRINT %.1f x %.2f y %.3f z
PRINT %.6f SEP "," x
PRINT %.5f SEP " " y
PRINT %.4f SEP "X" z

PRINT_VECTOR SEP "\t|\t" %.1f x  %.2f y %.3f z
# TODO: elems_per_line
# PRINT_VECTOR large