1
$\begingroup$

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.?

$\endgroup$

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.

3
$\begingroup$
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]

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

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