3
$\begingroup$

I would like to display the color in red if the coefficient value is 2 in the next polynomial.

enter image description here

But now, the coefficients and orders are all red.

enter image description here

Is there a way to show only the values of certain coefficients in red?

$\endgroup$
3
$\begingroup$

As already noted in the comment:

Factor[x^165 - 1] /. Times[2, a_] :> Times[Style[2, Red, Bold, 24], a] // Last

enter image description here

| improve this answer | |
$\endgroup$
  • $\begingroup$ Thank you. I solved it well. $\endgroup$ – user21427 Jun 30 '17 at 0:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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