Re: Min[], Max[]
- To: mathgroup at smc.vnet.net
- Subject: [mg48341] Re: Min[], Max[]
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Tue, 25 May 2004 07:17:04 -0400 (EDT)
- Organization: Universitaet Leipzig
- References: <c8rutb$8nl$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi, if you set up a recursive definition of Max[] max[{}] := -Infinity max[{a_, rest___}] := Module[{mr}, mr = Max[{rest}]; If[a > mr, a, mr]] you see why the definition is usefull. Regards Jens Frank Brand wrote: > > Dear newsgroup members, > > can anyone explain me what´s the sense in the definition of > > Min[{}]= Infinity and Max[{}]= -Infinity > > Thanks in advance > Frank > > Prof. Dr. Frank Brand > Budapester Str. 13 > 10787 Berlin > > +49 (0)30 - 25 79 36 62 > 0179 - 215 58 04 > > frank.brand at t-online.de