Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: How to remove Head from expression

  • To: mathgroup at smc.vnet.net
  • Subject: [mg97798] Re: How to remove Head from expression
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Sun, 22 Mar 2009 05:46:22 -0500 (EST)

On 3/21/09 at 5:20 AM, culinovic at gmail.com (dragec) wrote:

>Dear, I have

>Reduce[{# < 0, 0 < k < 1, b > 0}]& ....

>I would like to have: mainrules = {0 < k < 1, b > 0};
>Reduce[{# < 0, mainrules}]& ....


>What to apply on second argument of Reduce, to command work fine. In
>above example Head of mainrules is excess, and command not works.

A couple of things could be done here. First, you could use
Sequence as in,

Reduce[{# < 0, Sequence@@mainrules}]&

Or recognizing it is a 1-d list you are giving Reduce you could do

Reduce[Flatten@{# < 0, mainrules}]&



  • Prev by Date: Re: Orthogonazlie with Method->"Householder"
  • Next by Date: partial differential equation aolving difficulties
  • Previous by thread: How to remove Head from expression
  • Next by thread: Re: How to remove Head from expression