SetOptions[VarPop, Listable]
SetOptions::rep: "Listable is not a valid replacement rule.
SetOptions[VarPop, Listable -> True]
SetOptions::optnf: Listable is not a known option for VarPop.
J=E1nos.
P.S. VarPop IS listable. It can be make "more listable" :) by
closing out any other argument with the pattern of x_List.
On Feb 21, 2007, at 6:04 AM, Jens-Peer Kuska wrote:
> Hi,
>
> SetAttributes[VarPop,Listable]
>
> ??
>
> Regards
> Jens
>
> Gregory Lypny wrote:
>> Hello everyone,
>>
>> I've created a function for population variance, which does not make
>> use of Mathematica's built-in Variance function.
>>
>> VarPop[x_] := Total[(x - Mean@x)^2]/Length@x
>>
>> How do I need to change the definition to have the function operate
>> across lists much like Total, Mean, and Variance do?
>>
>> Regards,
>>
>> Greg
>>