Mathematica Asked by worldterminator on December 18, 2020
I want to simplify (a*32 + a%32)/32
, and a is integer.
So I write:
Simplify[Quotient[a*32 + Mod[a, 32], 32], Element[a, PositiveIntegers]]
However it gives me:
Quotient[32 a + Mod[a, 32], 32]
and I expect to see a
It must be a bug.
Simplify[Quotient[32 a + Mod[a, Range[32], 0], 32, 0],
Assumptions -> Element[a, PositiveIntegers]]
(* {a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a, a,
a, a, a, a, a, a, a, a, Quotient[32 a + Mod[a, 32, 0], 32, 0]} *)
Correct answer by cvgmt on December 18, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP