In my notebook, I obtain an expression that I can't figure out how to reduce to it's simplest form. I've recreated it below to show what I am trying to simplify.
Iratio2to1 = -(L1/Sqrt[L1 L2])
L2=(N2/N1)^2*L1
Assuming[{L1, L2} > 0 && {L1, L2} \[Element] Reals,Cancel[Iratio2to1]]
this returns:
$$-\frac{L1}{4\sqrt{L1^2}}$$
I cannot figure out how to have Mathematica reduce this to $-\frac{1}{4}$.
I've tried Simplify
, FullSimplify
, Cancel
, now Assuming
... I dont' get it!
Greater
does not have the attributeListable
then{L1, L2} > 0
does not do what you expect. Use eitherL1 > 0 && L2 > 0
orAnd@@Thread[{L1,L2} > 0]
.Cancel
does not use the optionAssumptions
so theAssuming
has no effect. UseSimplify
orFullSimplify
since they use the optionAssumptions
. Any variable used in an inequality (e.g.,Greater
) is assumed real so the{L1, L2} \[Element] Reals
is redundant. $\endgroup$