From c427bf6a94fb026e8105edc2210dfde0e98c00c2 Mon Sep 17 00:00:00 2001 From: Michael Daines Date: Sat, 14 Sep 2013 17:48:19 -0400 Subject: [PATCH] Add test showing calculation of standard deviation --- tests/all.test | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/all.test b/tests/all.test index 7a46edb7..c16b7eba 100644 --- a/tests/all.test +++ b/tests/all.test @@ -370,6 +370,10 @@ null [4,9] [2,3] +(add / length) as $m | map((. - $m) as $d | $d * $d) | add / length | sqrt +[2,4,4,4,5,5,7,9] +2 + def f(x): x | x; f([.], . + [42]) [1,2,3] [[[1,2,3]]]