Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,14 @@
|
|||
func writedat(filename, x, y, x_precision=3, y_precision=5) {
|
||||
var fh = File(filename).open_w
|
||||
|
||||
for a,b in (x ~Z y) {
|
||||
fh.printf("%.*g\t%.*g\n", x_precision, a, y_precision, b)
|
||||
}
|
||||
|
||||
fh.close
|
||||
}
|
||||
|
||||
var x = [1, 2, 3, 1e11]
|
||||
var y = x.map{.sqrt}
|
||||
|
||||
writedat('sqrt.dat', x, y)
|
||||
Loading…
Add table
Add a link
Reference in a new issue