Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
|
|
@ -0,0 +1,14 @@
|
|||
func writedat(filename, x, y, x_precision=3, y_precision=5) {
|
||||
var fh = File.new(filename).open_w;
|
||||
|
||||
MultiArray.new(x, y).each { |x, y|
|
||||
fh.printf("%.*g\t%.*g\n", x_precision, x, y_precision, y);
|
||||
}
|
||||
|
||||
fh.close;
|
||||
}
|
||||
|
||||
var x = [1, 2, 3, 1e11];
|
||||
var y = x»sqrt»();
|
||||
|
||||
writedat('sqrt.dat', x, y);
|
||||
Loading…
Add table
Add a link
Reference in a new issue