Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Re: Creating a Listable Function

  • To: mathgroup at
  • Subject: [mg73577] Re: [mg73552] Re: Creating a Listable Function
  • From: János <janos.lobb at>
  • Date: Thu, 22 Feb 2007 04:33:37 -0500 (EST)
  • References: <ergqjm$j0v$> <>

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.

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

  • Prev by Date: RE: Re: Quick integral.
  • Next by Date: Re: Map function which adds last two numbers of a list
  • Previous by thread: Re: Creating a Listable Function
  • Next by thread: Re: Creating a Listable Function