1

Why I have this behaviour?

R /: Greater[R, 0] = True
R > 0
  => True
Simplify[Sqrt[R^2]]
  => Sqrt[R^2]

I expect R as last result.

enzotib
  • 1,094
  • 7
  • 20

1 Answers1

2

One way to do this would be to keep a list of assumptions for your system, i.e.

assumptions = {R >= 0};
Simplify[Sqrt[R^2], Assumptions -> assumptions]

which returns R as expected.

joshsilverman
  • 342
  • 1
  • 5
  • There is no way to attach that information to R, so to avoid to recall the Assumptions option each time? – enzotib Mar 16 '13 at 15:19