Skip to content

Commit a723820

Browse files
committed
don't introduce symbolic inv
1 parent b6ecff1 commit a723820

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/methods.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const monadic = [deg2rad, rad2deg, transpose, -, conj, asind, log1p, acsch, acos, asec, acosh, acsc, cscd, log, tand, log10, csch, asinh, abs2, cosh, sin, cos, atan, cospi, cbrt, acosd, acoth, inv, acotd, asecd, exp, acot, sqrt, sind, sinpi, asech, log2, tan, exp10, sech, coth, asin, cotd, cosd, sinh, abs, csc, tanh, secd, atand, sec, acscd, cot, exp2, expm1, atanh, real]
1+
const monadic = [deg2rad, rad2deg, transpose, -, conj, asind, log1p, acsch, acos, asec, acosh, acsc, cscd, log, tand, log10, csch, asinh, abs2, cosh, sin, cos, atan, cospi, cbrt, acosd, acoth, acotd, asecd, exp, acot, sqrt, sind, sinpi, asech, log2, tan, exp10, sech, coth, asin, cotd, cosd, sinh, abs, csc, tanh, secd, atand, sec, acscd, cot, exp2, expm1, atanh, real]
22

33
const diadic = [+, -, max, min, *, /, \, hypot, atan, mod, rem, ^, copysign]
44

@@ -135,3 +135,5 @@ function cond(_if::Symbolic{Bool}, _then, _else)
135135
Term{Union{symtype(_then), symtype(_else)}}(cond, Any[_if, _then, _else])
136136
end
137137

138+
# Specially handle inv
139+
Base.inv(x::Symbolic) = x ^ -1

0 commit comments

Comments
 (0)