Skip to main content
replaced http://mathematica.stackexchange.com/ with https://mathematica.stackexchange.com/
Source Link

NOTE: the answer below refers to a somewhat different version of the OP's question.


Refine seems to be your friend here:

bop = Sqrt[x - 2]; Refine[Conjugate@bop, x < 2] (* Out: -I Sqrt[2 - x] *) 

Notice that, by implicating $x$ in an inequality, the system automatically includes the assumption that it must therefore be real, so only the inequality condition is necessary.


This is one more case that highlights that the user's and the system's concepts of "simpler" may not coincide (see also the discussion in my answer to Advice for Mathematica as Mathematician's Aidmy answer to Advice for Mathematica as Mathematician's Aid).

Simplify and its friends try to minimize the complexity of an expression, as measured mostly (but not uniquely) by the LeafCount of the expression. It so happens that in your case the LeafCount of your desired form is higher than that of the original Conjugate expression:

LeafCount[-I Sqrt[2 - x]] (* Out: 13 *) LeafCount[Conjugate[Sqrt[-2 + x]]] (* Out: 8 *) 

You can make sense of this somewhat unexpected result by looking at the FullForm of these expressions:

FullForm[-I Sqrt[2 - x]] (* Out: Times[Complex[0, -1], Power[Plus[2, Times[-1, x]], Rational[1, 2]]] *) FullForm[Conjugate[Sqrt[-2 + x]]] (* Out: Conjugate[Power[Plus[-2, x], Rational[1, 2]]] *) 

So, even though Refine is explicitly attempted by Simplify (as stated in the details of the documentation to Refine), its result is discarded in this case because the system deems it "more complex", and Simplify returns the unmodified input as the best form it can come up with!

NOTE: the answer below refers to a somewhat different version of the OP's question.


Refine seems to be your friend here:

bop = Sqrt[x - 2]; Refine[Conjugate@bop, x < 2] (* Out: -I Sqrt[2 - x] *) 

Notice that, by implicating $x$ in an inequality, the system automatically includes the assumption that it must therefore be real, so only the inequality condition is necessary.


This is one more case that highlights that the user's and the system's concepts of "simpler" may not coincide (see also the discussion in my answer to Advice for Mathematica as Mathematician's Aid).

Simplify and its friends try to minimize the complexity of an expression, as measured mostly (but not uniquely) by the LeafCount of the expression. It so happens that in your case the LeafCount of your desired form is higher than that of the original Conjugate expression:

LeafCount[-I Sqrt[2 - x]] (* Out: 13 *) LeafCount[Conjugate[Sqrt[-2 + x]]] (* Out: 8 *) 

You can make sense of this somewhat unexpected result by looking at the FullForm of these expressions:

FullForm[-I Sqrt[2 - x]] (* Out: Times[Complex[0, -1], Power[Plus[2, Times[-1, x]], Rational[1, 2]]] *) FullForm[Conjugate[Sqrt[-2 + x]]] (* Out: Conjugate[Power[Plus[-2, x], Rational[1, 2]]] *) 

So, even though Refine is explicitly attempted by Simplify (as stated in the details of the documentation to Refine), its result is discarded in this case because the system deems it "more complex", and Simplify returns the unmodified input as the best form it can come up with!

NOTE: the answer below refers to a somewhat different version of the OP's question.


Refine seems to be your friend here:

bop = Sqrt[x - 2]; Refine[Conjugate@bop, x < 2] (* Out: -I Sqrt[2 - x] *) 

Notice that, by implicating $x$ in an inequality, the system automatically includes the assumption that it must therefore be real, so only the inequality condition is necessary.


This is one more case that highlights that the user's and the system's concepts of "simpler" may not coincide (see also the discussion in my answer to Advice for Mathematica as Mathematician's Aid).

Simplify and its friends try to minimize the complexity of an expression, as measured mostly (but not uniquely) by the LeafCount of the expression. It so happens that in your case the LeafCount of your desired form is higher than that of the original Conjugate expression:

LeafCount[-I Sqrt[2 - x]] (* Out: 13 *) LeafCount[Conjugate[Sqrt[-2 + x]]] (* Out: 8 *) 

You can make sense of this somewhat unexpected result by looking at the FullForm of these expressions:

FullForm[-I Sqrt[2 - x]] (* Out: Times[Complex[0, -1], Power[Plus[2, Times[-1, x]], Rational[1, 2]]] *) FullForm[Conjugate[Sqrt[-2 + x]]] (* Out: Conjugate[Power[Plus[-2, x], Rational[1, 2]]] *) 

So, even though Refine is explicitly attempted by Simplify (as stated in the details of the documentation to Refine), its result is discarded in this case because the system deems it "more complex", and Simplify returns the unmodified input as the best form it can come up with!

added 94 characters in body
Source Link
MarcoB
  • 68k
  • 19
  • 98
  • 205

NOTE: the answer below refers to a somewhat different version of the OP's question.


Refine seems to be your friend here:

bop = Sqrt[x - 2]; Refine[Conjugate@bop, x < 2] (* Out: -I Sqrt[2 - x] *) 

Notice that, by implicating $x$ in an inequality, the system automatically includes the assumption that it must therefore be real, so only the inequality condition is necessary.


This is one more case that highlights that the user's and the system's concepts of "simpler" may not coincide (see also the discussion in my answer to Advice for Mathematica as Mathematician's Aid).

Simplify and its friends try to minimize the complexity of an expression, as measured mostly (but not uniquely) by the LeafCount of the expression. It so happens that in your case the LeafCount of your desired form is higher than that of the original Conjugate expression:

LeafCount[-I Sqrt[2 - x]] (* Out: 13 *) LeafCount[Conjugate[Sqrt[-2 + x]]] (* Out: 8 *) 

You can make sense of this somewhat unexpected result by looking at the FullForm of these expressions:

FullForm[-I Sqrt[2 - x]] (* Out: Times[Complex[0, -1], Power[Plus[2, Times[-1, x]], Rational[1, 2]]] *) FullForm[Conjugate[Sqrt[-2 + x]]] (* Out: Conjugate[Power[Plus[-2, x], Rational[1, 2]]] *) 

So, even though Refine is explicitly attempted by Simplify (as stated in the details of the documentation to Refine), its result is discarded in this case because the system deems it "more complex", and Simplify returns the unmodified input as the best form it can come up with!

Refine seems to be your friend here:

bop = Sqrt[x - 2]; Refine[Conjugate@bop, x < 2] (* Out: -I Sqrt[2 - x] *) 

Notice that, by implicating $x$ in an inequality, the system automatically includes the assumption that it must therefore be real, so only the inequality condition is necessary.


This is one more case that highlights that the user's and the system's concepts of "simpler" may not coincide (see also the discussion in my answer to Advice for Mathematica as Mathematician's Aid).

Simplify and its friends try to minimize the complexity of an expression, as measured mostly (but not uniquely) by the LeafCount of the expression. It so happens that in your case the LeafCount of your desired form is higher than that of the original Conjugate expression:

LeafCount[-I Sqrt[2 - x]] (* Out: 13 *) LeafCount[Conjugate[Sqrt[-2 + x]]] (* Out: 8 *) 

You can make sense of this somewhat unexpected result by looking at the FullForm of these expressions:

FullForm[-I Sqrt[2 - x]] (* Out: Times[Complex[0, -1], Power[Plus[2, Times[-1, x]], Rational[1, 2]]] *) FullForm[Conjugate[Sqrt[-2 + x]]] (* Out: Conjugate[Power[Plus[-2, x], Rational[1, 2]]] *) 

So, even though Refine is explicitly attempted by Simplify (as stated in the details of the documentation to Refine), its result is discarded in this case because the system deems it "more complex", and Simplify returns the unmodified input as the best form it can come up with!

NOTE: the answer below refers to a somewhat different version of the OP's question.


Refine seems to be your friend here:

bop = Sqrt[x - 2]; Refine[Conjugate@bop, x < 2] (* Out: -I Sqrt[2 - x] *) 

Notice that, by implicating $x$ in an inequality, the system automatically includes the assumption that it must therefore be real, so only the inequality condition is necessary.


This is one more case that highlights that the user's and the system's concepts of "simpler" may not coincide (see also the discussion in my answer to Advice for Mathematica as Mathematician's Aid).

Simplify and its friends try to minimize the complexity of an expression, as measured mostly (but not uniquely) by the LeafCount of the expression. It so happens that in your case the LeafCount of your desired form is higher than that of the original Conjugate expression:

LeafCount[-I Sqrt[2 - x]] (* Out: 13 *) LeafCount[Conjugate[Sqrt[-2 + x]]] (* Out: 8 *) 

You can make sense of this somewhat unexpected result by looking at the FullForm of these expressions:

FullForm[-I Sqrt[2 - x]] (* Out: Times[Complex[0, -1], Power[Plus[2, Times[-1, x]], Rational[1, 2]]] *) FullForm[Conjugate[Sqrt[-2 + x]]] (* Out: Conjugate[Power[Plus[-2, x], Rational[1, 2]]] *) 

So, even though Refine is explicitly attempted by Simplify (as stated in the details of the documentation to Refine), its result is discarded in this case because the system deems it "more complex", and Simplify returns the unmodified input as the best form it can come up with!

Explanation for the behavior
Source Link
MarcoB
  • 68k
  • 19
  • 98
  • 205

Refine seems to be your friend here:

bop = Sqrt[x - 2]; Refine[Conjugate@bop, x < 2] (* Out: -I Sqrt[2 - x] *) 

Notice that, by implicating $x$ in an inequality, the system automatically includes the assumption that it must therefore be real, so only the inequality condition is necessary.


This is one more case that highlights that the user's and the system's concepts of "simpler" may not coincide (see also the discussion in my answer to Advice for Mathematica as Mathematician's Aid).

Simplify and its friends try to minimize the complexity of an expression, as measured mostly (but not uniquely) by the LeafCount of the expression. It so happens that in your case the LeafCount of your desired form is higher than that of the original Conjugate expression:

LeafCount[-I Sqrt[2 - x]] (* Out: 13 *) LeafCount[Conjugate[Sqrt[-2 + x]]] (* Out: 8 *) 

You can make sense of this somewhat unexpected result by looking at the FullForm of these expressions:

FullForm[-I Sqrt[2 - x]] (* Out: Times[Complex[0, -1], Power[Plus[2, Times[-1, x]], Rational[1, 2]]] *) FullForm[Conjugate[Sqrt[-2 + x]]] (* Out: Conjugate[Power[Plus[-2, x], Rational[1, 2]]] *) 

So, even though Refine is explicitly attempted by Simplify (as stated in the details of the documentation to Refine), its result is discarded in this case because the system deems it "more complex", and Simplify returns the unmodified input as the best form it can come up with!

Refine seems to be your friend here:

bop = Sqrt[x - 2]; Refine[Conjugate@bop, x < 2] (* Out: -I Sqrt[2 - x] *) 

Notice that, by implicating $x$ in an inequality, the system automatically includes the assumption that it must therefore be real, so only the inequality condition is necessary.

Refine seems to be your friend here:

bop = Sqrt[x - 2]; Refine[Conjugate@bop, x < 2] (* Out: -I Sqrt[2 - x] *) 

Notice that, by implicating $x$ in an inequality, the system automatically includes the assumption that it must therefore be real, so only the inequality condition is necessary.


This is one more case that highlights that the user's and the system's concepts of "simpler" may not coincide (see also the discussion in my answer to Advice for Mathematica as Mathematician's Aid).

Simplify and its friends try to minimize the complexity of an expression, as measured mostly (but not uniquely) by the LeafCount of the expression. It so happens that in your case the LeafCount of your desired form is higher than that of the original Conjugate expression:

LeafCount[-I Sqrt[2 - x]] (* Out: 13 *) LeafCount[Conjugate[Sqrt[-2 + x]]] (* Out: 8 *) 

You can make sense of this somewhat unexpected result by looking at the FullForm of these expressions:

FullForm[-I Sqrt[2 - x]] (* Out: Times[Complex[0, -1], Power[Plus[2, Times[-1, x]], Rational[1, 2]]] *) FullForm[Conjugate[Sqrt[-2 + x]]] (* Out: Conjugate[Power[Plus[-2, x], Rational[1, 2]]] *) 

So, even though Refine is explicitly attempted by Simplify (as stated in the details of the documentation to Refine), its result is discarded in this case because the system deems it "more complex", and Simplify returns the unmodified input as the best form it can come up with!

Source Link
MarcoB
  • 68k
  • 19
  • 98
  • 205
Loading