Symbolics.jl
Symbolics.jl copied to clipboard
Error from sparse_fitLinearAlgebra.SingularException(4) generated when calling Random.seed using specific seed before calling SymbolicNumericIntegration.integrate
Using Julia 1.8 on windows 10:
I noticed an an error is generated when setting the Random seed with specific value before calling integrate. The following
Random.seed!(1234)
integrate(1 / (((1 - 2x)^3)*((2 + 3x)^3)*((3 + 5x)^2)),x)
gives error
Error from sparse_fitLinearAlgebra.SingularException(4)
But commenting out Random.seed!(1)
in the above, the error is gone.
In addition, keeping the call to Random.seed! there, but changing the seed value from 1234
to 12
the error message is also gone !
This is on Julia 1.8. Is this a bug? btw, Is it safe to ignore this error message?
using Symbolics
using SymbolicNumericIntegration
import Random
#why seed 1234 gives error from integrate? but seed 12 does not?
Random.seed!(1234)
@syms x
integrate(1 / (((1 - 2x)^3)*((2 + 3x)^3)*((3 + 5x)^2)),x)