Skip to content

Commit 65581d2

Browse files
minor editing
1 parent ae29a26 commit 65581d2

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

src/integral.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ julia> integrate(x * sin(a * x), (x, 0, 1); symbolic = true, detailed = false)
2727
## Arguments:
2828
2929
- `eq`: a univariate expression
30-
- `x`ex: independent variable (optional if `eq` is univariate) or a tuple
30+
- `x`: independent variable (optional if `eq` is univariate) or a tuple
3131
of (independent variable, lower bound, upper bound) for definite integration.
3232
3333
## Keyword Arguments:

src/sparse.jl

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -80,22 +80,22 @@ function init_basis_matrix(eq, x, basis; plan = default_plan(), nv = 1)
8080
l = 10 * (n + nv) # max attempt
8181

8282
while k <= n + nv && l > 0
83-
#try
84-
x₀ = test_point(plan.complex_plane, plan.radius)
85-
X[k] = x₀
86-
b₀ = eq_fun(X[k])
87-
88-
if is_proper(b₀)
89-
for j in 1:n
90-
A[k, j] = Δbasis_fun[j](X[k]) / b₀
91-
end
92-
if all(is_proper, A[k, :])
93-
k += 1
83+
try
84+
x₀ = test_point(plan.complex_plane, plan.radius)
85+
X[k] = x₀
86+
b₀ = eq_fun(X[k])
87+
88+
if is_proper(b₀)
89+
for j in 1:n
90+
A[k, j] = Δbasis_fun[j](X[k]) / b₀
91+
end
92+
if all(is_proper, A[k, :])
93+
k += 1
94+
end
9495
end
96+
catch e
97+
println("Error from init_basis_matrix: ", e)
9598
end
96-
#catch e
97-
# println("Error from init_basis_matrix: ", e)
98-
#end
9999
l -= 1
100100
end
101101

0 commit comments

Comments
 (0)