# How do I to remove a factor of 1 [duplicate]

This question already has an answer here:

I evaluated

Subscript[ε, 1, 2] = 0.5 Subscript[γ, 1, 2]
2 μ Subscript[ε, 1, 2]

1. μ Subscript[γ, 1, 2]


How do I to remove the factor 1.?

## marked as duplicate by QuantumDot, MarcoB, Mr.Wizard♦Jul 21 '18 at 3:05

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

## 1 Answer

Subscript[ε, 1, 2] = .5 Subscript[γ, 1, 2]


0.5 Subscript[γ, 1, 2]

Rationalize[2 μ Subscript[ε, 1, 2]]


μ Subscript[γ, 1, 2]

% // TeXForm


$\mu \gamma _{1,2}$

Or, use 1/2 instead of 0.5 in your first line:

Subscript[ε, 1, 2] = 1/2 Subscript[γ, 1, 2]


Subscript[γ, 1, 2]/2

2 μ Subscript[ε, 1, 2]


μ Subscript[γ, 1, 2]

• thanks, but why we can not directly use 0.5?? – ABCDEMMM Jul 21 '18 at 0:41
• @ABCDEMMM, 2 * 0.5 gives 1. and you don't want that. Btw, compare 1 * something with 1. * something – kglr Jul 21 '18 at 0:56
• @kglr would you consider this a duplicate of any of the Linked questions? – Mr.Wizard Jul 21 '18 at 3:00
• @Mr.Wizard, the last one seems like a duplicate. – kglr Jul 21 '18 at 3:04
• Good to know, it is duplicate! thank you @Mr.Wizard. – ABCDEMMM Jul 21 '18 at 23:58