This is maybe a silly question, but I could not think of any logical reason why it is not simplified automatically.
I was working with a big linear equation system with some constrained inequalities and noticed a lot of "1. xyz" terms.
I tried Simplify[1. x == x] which gives True, but 1. x stays 1. x. I'm using the simple rule Rule[1., 1] to simplify the "1. xyz" terms in my equation system; it just looks somehow "better" (in my opinion).
Function Times was last modified in version 3, so this behaviour should exist for a long time now.
What is the logical reason behind?
1.is an inexact number, i.e. not1, just an approximation of1with an associated precision.1. xwon't simplify tox==1*xbecause it is only approximately equal to it. In most cases it's better not to use inexact numbers for symbolic calculations. – Szabolcs Jun 13 '14 at 13:53RoundorRationalizethe result to an appropriate precision to eliminate 1. or 0. inexact coefficients. – Bob Hanlon Jun 13 '14 at 14:08