1
$\begingroup$

I see this interesting question here.

But I want to simplify it with the help of Simplify function (Maybe the TransformationFunctions and ComplexityFunction options will be used) . How can I reduce the expression $\sqrt{5-2 \sqrt{6}}$ to $ \sqrt{3}-\sqrt{2}$ ?

Simplify[Sqrt[5 - 2 Sqrt[6]]]

I hope to use MMA's Simplify function to achieve this simplification.

$\endgroup$

1 Answer 1

1
$\begingroup$

Try this:

FullSimplify[Sqrt[5 - 2 Sqrt[6]], ComplexityFunction -> (Count[#, Sqrt[6], Infinity] &)]

(*  -Sqrt[2] + Sqrt[3]   *)

Note that it works with FullSimplify but not with Simplify. I do not know the reason.

Have fun!

$\endgroup$
1
  • $\begingroup$ Thank you very much. Can you use TransformationFunctions function to achieve this? $\endgroup$ Commented Feb 10, 2020 at 23:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.