Simplifying sqrt(4*z^2-4*z+1)?



Stavros Macrakis wrote:
> On Mon, Feb 9, 2009 at 12:54 PM, Raymond Toy <raymond.toy at ericsson.com
> <mailto:raymond.toy at ericsson.com>> wrote:
>
>
>     Assume |z| <= 1/2, how can I get maxima to simplify
>
>     (sqrt(4*z^2-4*z+1)-1)/(2*z^2-2*z)?
>
>
> expr: (sqrt(4*z^2-4*z+1)-1)/(2*z^2-2*z)
> assume(z>-1/2,z<1/2)$
> scanmap(factor,expr) => -1/(z-1)
>
>  
Thanks.  It would have been nice if factor peeked inside sqrt, but I
guess factor isn't supposed to do that.

Ray