diff --git a/src/simplify_rules.jl b/src/simplify_rules.jl index 9ebfb5ee7..5845adea9 100644 --- a/src/simplify_rules.jl +++ b/src/simplify_rules.jl @@ -54,6 +54,7 @@ let @rule(real(~x::_isreal) => ~x) @rule(imag(~x::_isreal) => zero(symtype(~x))) @rule(ifelse(~x::is_literal_number, ~y, ~z) => ~x ? ~y : ~z) + @rule(ifelse(~x, ~y, ~y) => ~y) ] TRIG_EXP_RULES = [