MathGroup Archive 2012

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

Search the Archive

Re: Is there way to use something like Assuming with the function SIgn?


On 11/23/12 at 3:25 AM, emammendes at hotmail.com (Eduardo Mendes)
wrote:

>I was wondering there is something similar to what can be done with
>Integrate, Reduce and Limit.  Something like

>list={1,-2,a,3}

>Assuming[a<0,Sign[list]]

>Mathematica returns {1,-1,Sign[a],1} and I would like to see
>something like {1,-1,-1,1}.   Can that be done?


Assuming only affects the operation of a few functions in
Mathematica such as Simplify. So,

In[19]:= Clear[a];
list = {1, -2, a, 3};
Assuming[a < 0, Simplify[Sign[list]]]

Out[21]= {1,-1,-1,1}




  • Prev by Date: Re: Plots combining
  • Next by Date: Re: Integer Length Count
  • Previous by thread: Re: Is there way to use something like Assuming with the function SIgn?
  • Next by thread: Plots combining