The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.