MathGroup Archive 2005

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

Search the Archive

Re: Simplify and Abs

  • To: mathgroup at smc.vnet.net
  • Subject: [mg54766] Re: Simplify and Abs
  • From: Roland Franzius <roland.franzius at uos.de>
  • Date: Tue, 1 Mar 2005 01:58:20 -0500 (EST)
  • Organization: Universitaet Hannover
  • References: <200502250618.BAA02358@smc.vnet.net> <cvrppa$p00$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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