Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Tips for writing correct, non trivial Mathematica Libraries
Replies: 1   Last Post: Jan 22, 2012 7:19 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
Andrzej Kozlowski

Posts: 2,112
Registered: 1/29/05
Re: Tips for writing correct, non trivial Mathematica Libraries
Posted: Jan 22, 2012 7:19 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


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




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.