Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #8076

Re: Tips for writing correct, non trivial Mathematica Libraries

From Andrzej Kozlowski <akoz@mimuw.edu.pl>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Tips for writing correct, non trivial Mathematica Libraries
Date 2012-01-22 12:19 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jfgusl$pal$1@smc.vnet.net> (permalink)
References <201201211013.FAA10054@smc.vnet.net>

Show all headers | View raw


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

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Tips for writing correct, non trivial Mathematica Libraries Andrzej Kozlowski <akoz@mimuw.edu.pl> - 2012-01-22 12:19 +0000

csiph-web