Operations with Lists
Q, 41
{(+/;*/;avg;med;-':;asc;min;max;dev)@\:x}
J, 73 70 characters
((+/;*/;a;(<.@-:@#{/:~);2&-~/\;/:~;<./;>./;%:@:(a@:*:@:(-a)))[a=.+/%#)
Usage:
((+/;*/;a;(<.@-:@#{/:~);2&-~/\;/:~;<./;>./;%:@:(a@:*:@:(-a)))[a=.+/%#)1 2 3 4
+--+--+---+-+-------+-------+-+-+-------+
|10|24|2.5|3|1 1 1 1|1 2 3 4|1|4|1.11803|
+--+--+---+-+-------+-------+-+-+-------+
TI-BASIC, 41 bytes
1-Var Stats
is one byte, and Σx
, x̄
, etc. are two bytes each.
Ans→L₁
1-Var Stats
SortA(L₁
Disp Σx,prod(Ans),x̄,Med,ΔList(Ans),L₁,minX,maxX,σx
If changing the output order is allowed, a close-paren can be saved, bringing the score to 40 bytes.