MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Use pattern to find minimum without using min


Tried

{9, 4, 6, 5, 3, 7} //. {a___, b_, c___, d_, e___} :> b /; (b < d)

and

{9, 4, 6, 5, 3, 7} //. {x_,y_,z___} :> {x,z} /; (x<y)

without much success.


  • Prev by Date: Re: Re: Re: Arithmetic Puzzle (so simple it's hard)
  • Next by Date: Algorithm used by "Reduce" function
  • Previous by thread: RE: Graphics--How to plot all functions issued from For loop and color
  • Next by thread: Algorithm used by "Reduce" function