Mathematica 9 is now available
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: [mg97809] Re: How to remove Head from expression
  • From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
  • Date: Sun, 22 Mar 2009 05:48:31 -0500 (EST)
  • References: <gq2f0l$eem$1@smc.vnet.net>

Hi Dragec,

The trick is the use of Sequence. I'll provide two examples below:

In[8]:= mainrules = {0 < k < 1, b > 0};
Reduce[{# < 0, mainrules /. List -> Sequence}] & @ ape

Out[9]= b > 0 && 0 < k < 1 && ape < 0

---------

In[12]:= mainrules = Sequence[0 < k < 1, b > 0];
Reduce[{# < 0, mainrules}] & @ ape

Out[13]= b > 0 && 0 < k < 1 && ape < 0


Cheers -- Sjoerd


On Mar 21, 12:20 pm, dragec <culino... at gmail.com> 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.
>
> THX



  • Prev by Date: Re: Online Graphic Output
  • Next by Date: Re: DSolve bug
  • Previous by thread: Re: How to remove Head from expression
  • Next by thread: DSolve bug