Re: Min function returns Min[2.05875,] instead of just 2.05875
- To: mathgroup at smc.vnet.net
- Subject: [mg100393] Re: Min function returns Min[2.05875,] instead of just 2.05875
- From: pfalloon <pfalloon at gmail.com>
- Date: Tue, 2 Jun 2009 06:47:03 -0400 (EDT)
- References: <h00d38$pkq$1@smc.vnet.net>
On Jun 1, 9:12 pm, dg <davide.guari... at gmail.com> wrote:
> I have an matrix "data" with 17x248 real numbers.
>
> When I enter Min[data], I get
> Min[2.05875, ] as a result, instead of just the number 2.05875.
>
> This is Mathematica 7.0.1 on Mac OS X.
>
> Why?
>
> How can I get just the number from the result?
>
> TIA
Hi,
It's hard to see exactly what's going wrong because you have not
included the exact code, but at a guess I'd say there may some
invisible wrapper around the list of numbers, which is preventing Min
evaluating properly.
In general, the behaviour should be as follows:
In[290]:= data = RandomReal[10, {17, 248}];
Min[data]
Out[291]= 0.00017248
Cheers,
Peter.