Add tasks for all the new languages

This commit is contained in:
Tina Müller 2016-12-05 23:44:36 +01:00
parent 9dc3c2bb62
commit bba7bfd280
13208 changed files with 134745 additions and 0 deletions

View file

@ -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);