FullSimplify[Mod[t,10], t>101 && t<109]
It's a long shot, but can I get Mathematica to return t-100
or something similar for the above?
Currently it returns just Mod[t,10]
itself, which is accurate, but I want even more simplification based on my conditions.
Answer
How about
Assuming[101 < t < 109, FullSimplify[PiecewiseExpand[Mod[t, 10]]]]
rhermans gives a simpler formulation:
PiecewiseExpand[Mod[t, 10], 101 < t < 109]
Comments
Post a Comment