Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #12439

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

From Bill Rowe <readnews@sbcglobal.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Is there way to use something like Assuming with the function SIgn?
Date 2012-11-24 07:27 +0000
Message-ID <k8pstb$iqk$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


On 11/23/12 at 3:25 AM, emammendes@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}

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Is there way to use something like Assuming with the function SIgn? Bill Rowe <readnews@sbcglobal.net> - 2012-11-24 07:27 +0000

csiph-web