Re: Tips for writing correct, non trivial Mathematica Libraries
- To: mathgroup at smc.vnet.net
- Subject: [mg124499] Re: Tips for writing correct, non trivial Mathematica Libraries
- From: Andrzej Kozlowski <akoz at mimuw.edu.pl>
- Date: Sun, 22 Jan 2012 07:18:46 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201201211013.FAA10054@smc.vnet.net>
On 21 Jan 2012, at 11:13, Murray Eisenberg wrote: > Whether a function whose natural domain consists of lists should coerce > a scalar into a one-element list is purely a matter of convenience. > > That the built-in GeometricMean does do that whereas the documentation's > example geom does not is perhaps just a sloppy oversight in constructing > that example. GeometricMean[x + y] During evaluation of In[122]:= GeometricMean::vecmat1: Argument x+y is neither a non-empty vector nor a non-empty matrix. >> GeometricMean[x + y] Andrzej Kozlowski
- References:
- Re: Tips for writing correct, non trivial Mathematica Libraries
- From: Murray Eisenberg <murray@math.umass.edu>
- Re: Tips for writing correct, non trivial Mathematica Libraries