Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



Re: Tips for writing correct, non trivial Mathematica Libraries
Posted:
Jan 22, 2012 7:19 AM


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 oneelement list is purely a matter of convenience. > > That the builtin 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 nonempty vector nor a nonempty matrix. >>
GeometricMean[x + y]
Andrzej Kozlowski



