2
$\begingroup$

Is there a way to write a FullSimplify at the end of the line with some assumptions?

That is, if I write

a^2+b^2+2 a b //FullSimplify[...]

is there any way to include some assumptions for a,b?

$\endgroup$
1
  • 2
    $\begingroup$ ... //FullSimplify[#, ...]& $\endgroup$
    – Kuba
    Jul 15, 2014 at 18:09

1 Answer 1

7
$\begingroup$

Use

Assuming[a > 0, a^2 + b^2 + 2 a b // FullSimplify]

or

a^2 + b^2 + 2 a b // FullSimplify[#, a > 0] &
$\endgroup$

Your Answer

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

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