# why won't simplify square roots?

sage: assume(x>2)

sage: sqrt(x^2 - 2*x + 1).simplify_full()

sqrt(x^2 - 2*x + 1)

why won't simplify square roots?

sage: assume(x>2)

sage: sqrt(x^2 - 2*x + 1).simplify_full()

sqrt(x^2 - 2*x + 1)

add a comment

1

You can use the `canonicalize_radical`

method for that:

```
sage: e = sqrt(x^2 - 2*x + 1)
sage: e.canonicalize_radical()
x - 1
```

However, the assumptions are not taken into account, please read the warning in the doc:

```
sage: e.canonicalize_radical?
```

Asked: **
2016-11-24 00:42:57 -0600
**

Seen: **97 times**

Last updated: **Nov 24 '16**

simplifying ( x^beta )^( (mu - Lambda) / ( mu -2)) * x ^ ( alpha - beta + 4) is not satisfactory

.canonicalize_radical() produces incorrect result

simplify_full - is the mistake in the documentation or the source code?

simplify_full() and symbolic vectors

Sage doesn't simplify a fraction if it's multiplied by 2

Speed up simplify_full() on large expression via parallel?

How did simplify_full() manipulate this expression?

.simplify_full() doesn't simplify an obvious trigonometric expression

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.