I am using Mathematica for a long calculation, while performing checks throughout the code. I noticed that the following is not working as I expected and is resulting in inconsistencies later on.
Simplify[(b + c)/a, {a + b + c == 0}, Assumptions -> {Reals[a, b, c], a != 0, b != 0, c != 0}]
(* Out: (b + c)/a *)
I have also tried FullSimplify
and Refine
, but nothing seems to return the answer $-1$. Can someone point out what needs to be added/changed to obtain the expected result and/or why this does not automatically Simplify
to $-1$?
I suspect there is a similar problem in the following as well:
FullSimplify[
(b/c)^n/a^n - (b/(a*c))^n,
Assumptions -> {
Reals[a, b, c], Integers[n],
a != 0, b != 0, c != 0,
n > 1
}
]
(* Out: (b/c)^n/a^n - (b/(a*c))^n *)
I am using Mathematica 12.2
Reals
is a domain, not a function, so you should writeElement[{a, b, c}, Reals]
instead ofReals[a, b, c]
. The latter means nothing. With those changes, the expression simplifies to zero. $\endgroup$