Skip to content

Commit a6f9c85

Browse files
committed
fixed int_and_subst function
1 parent 1823504 commit a6f9c85

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/methods/rule_based/frontend.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,6 @@ function integrate_rule_based(integrand::Symbolics.Num, int_var::Symbolics.Num;
114114
println()
115115
return result
116116
end
117+
118+
integrate_rule_based(integrand::SymbolicUtils.BasicSymbolic{Real}, int_var::SymbolicUtils.BasicSymbolic{Real}; kwargs...) =
119+
integrate_rule_based(Num(integrand), Num(int_var); kwargs...)

src/methods/rule_based/rules_utility_functions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ function int_and_subst(integrand, int_var, from, to, rule_from_identifier)
432432
printstyled(replace(string(from),string(int_var)=>"u")*" = "*string(to), "\n"; color = :light_blue)
433433
end
434434

435-
result = integrate(integrand, int_var;verbose=VERBOSE)
435+
result = integrate_rule_based(integrand, int_var;verbose=VERBOSE)
436436
push!(SILENCE, rule_from_identifier)
437437
if !contains_int(result)
438438
return substitute(result, from => to)

0 commit comments

Comments
 (0)