Skip to main content
10 events
when toggle format what by license comment
Nov 6, 2013 at 0:53 history closed Michael E2
Artes
Sjoerd C. de Vries
m_goldberg
rm -rf
Duplicate of What are the most common pitfalls awaiting new users?, Simplifying expressions with square roots
Nov 5, 2013 at 19:20 review Close votes
Nov 6, 2013 at 0:53
Nov 5, 2013 at 19:02 comment added Michael E2 This question has an answer here: Pitfalls. Related question: Why is ReplaceAll behaving like this?
Nov 5, 2013 at 17:58 comment added b.gates.you.know.what Because FullForm[Sqrt[x]] == Power[x, Rational[1,2]] while FullForm[1/Sqrt[x]] == Power[x, Rational[-1,2]] and therefore your pattern will not match.
Nov 5, 2013 at 17:27 comment added dbm It worked. But I don't understand the concept. Let's say, we want to replace E^(1 - x[1] + x[2]) to m[1,2]. Then the replacement doesn't change E^(2 - 2 (x[1] - x[2])) even thought it should be replaced by m[1,2]^2.
Nov 5, 2013 at 17:13 answer added bill s timeline score: 1
Nov 5, 2013 at 17:12 answer added Jason B. timeline score: 2
Nov 5, 2013 at 17:11 comment added Dr. belisarius Yep, always use FullForm[] when a replacement doesn't work
Nov 5, 2013 at 17:09 comment added b.gates.you.know.what If you look at FullForm you'll see that you need {Sqrt[(t_)^2] -> t, 1/Sqrt[t_^2] -> 1/t}.
Nov 5, 2013 at 17:03 history asked dbm CC BY-SA 3.0