Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #12449 > unrolled thread
| Started by | "Eduardo M. A. M. Mendes" <emammendes@hotmail.com> |
|---|---|
| First post | 2012-11-24 07:30 +0000 |
| Last post | 2012-11-24 07:30 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Is there way to use something like Assuming with the function SIgn? "Eduardo M. A. M. Mendes" <emammendes@hotmail.com> - 2012-11-24 07:30 +0000
| From | "Eduardo M. A. M. Mendes" <emammendes@hotmail.com> |
|---|---|
| Date | 2012-11-24 07:30 +0000 |
| Subject | Re: Is there way to use something like Assuming with the function SIgn? |
| Message-ID | <k8pt22$it8$1@smc.vnet.net> |
Hello
Many thanks.
Ed
On Nov 23, 2012, at 12:01 PM, Bob Hanlon <hanlonr357@gmail.com> wrote:
> "Assuming[assum, expr] evaluates expr with assum appended to
> $Assumptions, so that assum is included in the default assumptions
> used by functions such as Refine, Simplify, and Integrate."
>
> list = {1, -2, a, 3};
>
> Assuming[a < 0, Simplify[Sign[list]]]
>
> {1, -1, -1, 1}
>
> However, more compactly
>
> Simplify[Sign[list], a < 0]
>
> {1, -1, -1, 1}
>
>
> Bob Hanlon
>
>
> On Fri, Nov 23, 2012 at 3:25 AM, Eduardo Mendes <emammendes@hotmail.com> wrote:
>> Hello
>>
>> 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?
>>
>> Many thanks
>>
>> Ed
>>
>>
>
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web