Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1995
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1995

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

Search the Archive

Re: Puzzle

  • To: mathgroup at smc.vnet.net
  • Subject: [mg2419] Re: [mg2258] Puzzle
  • From: Patrick Jemmer <paddy at sun4.bham.ac.uk>
  • Date: Sun, 5 Nov 1995 16:05:48 -0500
  • Organization: The University of Birmingham, UK.

In trying to tidy this up, I attempted:

lst={6, 44, 30, 15, 24, 12, 33, 23, 18}
chk={a___, b_, c___, d_, e___, f_, g___, h_, i___}
cnd=b + d + f + h == 100
sln={b,d,f,h}

lst/.chk/;cnd->sln

But this doesn't work...

nor does:

chk1=chk/;cnd

lst/.chk1->sln

nor does

chk2=Hold[chk/;cnd]

lst/.ReleaseHold[chk2]->sln

Any ideas to help sort out my confusion??

Cheers, patrick.



  • Prev by Date: Playing several sounds simultaneously
  • Next by Date: Complex Matrices
  • Previous by thread: Playing several sounds simultaneously
  • Next by thread: Re: Re: Puzzle