Answer 3.13
The `symbolic toolbox' uses a standard notation. It denotes a square root as
(1/2). Hence, sqrt(x
2) is rewritten as (x
2)
(1/2).
Notice that, in general, sqrt(x
2) equals abs(x) and not just x. Therefore, MATLAB holds on to the square root.
INPUT SUMMARY:
>> syms x >> sqrt(x^2) ans = (x^2)^(1/2)
Back
Next exercise
Esteur 2010-03-22