You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
matchers_modified = (matcher(operation(term)), matcher(arguments(term)[1]), opposite_sign_matcher(arguments(term)[2])) # is this ok to be here or should it be outside neg_pow_term_matcher?
157
-
end
158
-
159
131
functionterm_matcher_pow(success, data, bindings)
160
132
!islist(data) &&returnnothing# if data is not a list, return nothing
161
133
!iscall(car(data)) &&returnnothing# if first element is not a call, return nothing
@@ -166,27 +138,15 @@ function term_matcher_constructor(term, acSets)
166
138
# if data is of the alternative form 1/(...)^(...), it might match with negative exponent
167
139
if (operation(car(data))==/) &&arguments(car(data))[1]==1&&iscall(arguments(car(data))[2]) && (operation(arguments(car(data))[2])==^)
168
140
denominator =arguments(car(data))[2]
169
-
# let's say data = a^b with a and b can be whatever
170
-
# if b is not a number then call the loop function with a^-b
0 commit comments