We can improve that easily. Are they still forcing people to use that language?
yep, they are. ((
No idea. Maybe because it is short and simple!?))
Also, one more thing turned out to be wrong, I already edited my code so it returns K, sum and Error, but have just noticed that they do not want the actual error to be on the list, they want me to calculate sums with given accuracy (10^-3, 10^-4, 10^-5, 10^-6) and specify this accuracy in the error column. I guess I'm just gonna leave it as it is. I think the script currently does even more calculations than required.