Skip to content

Commit

Permalink
Merge pull request #1267 from JuliaSymbolics/ChrisRackauckas-patch-1
Browse files Browse the repository at this point in the history
Hotfix symbolic_to_float
  • Loading branch information
ChrisRackauckas authored Sep 8, 2024
2 parents 81d894b + afa6c82 commit 8644899
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,5 @@ function symbolic_to_float end
symbolic_to_float(x::Num) = symbolic_to_float(unwrap(x))
symbolic_to_float(x::Number) = x
function symbolic_to_float(x::SymbolicUtils.BasicSymbolic)
if _x isa Number
return _x
else
substitute(x,Dict())
end
substitute(x,Dict())
end

0 comments on commit 8644899

Please sign in to comment.