MathGroup Archive 2005

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

Search the Archive

Re: Simplify and Abs


Murray Eisenberg wrote:
> Strangely, though, the docs for version 5.1 say:
> 
>    FunctionExpand is automatically called by FullSimplify
> 


Yes, it does but not with an improper weigth function for complexity

eg

In:=
FullSimplify[Abs[p - 1],
Assumptions -> 1/2<p<1,
ComplexityFunction -> (If[FreeQ[#, Abs], ByteCount[#], 1000] &)]

Out:=
  1 - p


Roland Franzius



> Bob Hanlon wrote:
> 
>>FunctionExpand[Abs[p-1],p<1&&p>1/2]
>>
>>1-p
>>
>>
>>>From: Simon Anders <simon.anders at uibk.ac.at>
To: mathgroup at smc.vnet.net
>>
>>>Date: 2005/02/24 Thu AM 03:21:06 EST
>>>To: mathgroup at smc.vnet.net
>>>Subject: [mg54766]  Simplify and Abs
>>>
>>>can it really be that this is already beyond Mathematica?
>>>
>>>   In :=  FullSimplify[Abs[p - 1], p < 1 && p > 1/2]
>>>
>>>   Out := Abs[-1 + p]
> 
> 
> 


  • Prev by Date: Plot3D gives serrated ridge
  • Next by Date: Re: Drawing field Plot 3d
  • Previous by thread: Re: Plot3D gives serrated ridge
  • Next by thread: Re: Changing Plot Axis Displays