File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,23 @@ function term_matcher_constructor(term, acSets)
153
153
result = loop (frankestein, bindings, matchers)
154
154
result != = nothing && return success (result, 1 )
155
155
end
156
+
157
+ # if data is a exp call, it might match with base e
158
+ if operation (data)=== exp
159
+ T = symtype (arguments (data)[1 ])
160
+ frankestein = Term {T} (^ ,[ℯ,arguments (data)[1 ]])
161
+ result = loop (frankestein, bindings, matchers)
162
+ result != = nothing && return success (result, 1 )
163
+ end
164
+
165
+ # if data is a sqrt call, it might match with exponent 1//2
166
+ if operation (data)=== sqrt
167
+ T = symtype (arguments (data)[1 ])
168
+ frankestein = Term {T} (^ ,[arguments (data)[1 ], 1 // 2 ])
169
+ result = loop (frankestein, bindings, matchers)
170
+ result != = nothing && return success (result, 1 )
171
+ end
172
+
156
173
return nothing
157
174
end
158
175
return pow_term_matcher
You can’t perform that action at this time.
0 commit comments