@@ -46,7 +46,7 @@ Output:
4646- `unsolved`: the residual unsolved portion of the input
4747- `err`: the numerical error in reaching the solution
4848"""
49- function integrate (eq, x = nothing , domain:: Vector{<:Number} = nothing ; abstol = 1e-6 , num_steps = 2 , num_trials = 10 ,
49+ function integrate (eq, x = nothing , domain:: Vector{<:Number} = [ NaN ] ; abstol = 1e-6 , num_steps = 2 , num_trials = 10 ,
5050 radius = 1.0 ,
5151 show_basis = false , opt = STLSQ (exp .(- 10 : 1 : 0 )), bypass = false ,
5252 symbolic = true , max_basis = 100 , verbose = false , complex_plane = true ,
@@ -73,7 +73,7 @@ function integrate(eq, x = nothing, domain::Vector{<:Number} = nothing; abstol =
7373 s, u, ϵ = integrate_sum (eq, x, l; bypass, abstol, num_trials, num_steps,
7474 radius, show_basis, opt, symbolic,
7575 max_basis, verbose, complex_plane, use_optim)
76- if domain != nothing
76+ if ! all ( domain .=== NaN )
7777 s = substitute ( s, Dict ( [ x=> domain[1 ] ] ) ) - substitute ( s, Dict ( [ x=> domain[2 ] ] ) )
7878 end
7979 # return simplify(s), u, ϵ
0 commit comments