Skip to content

Commit

Permalink
Merge pull request #432 from JuliaSymbolics/myb/scalarize
Browse files Browse the repository at this point in the history
Add scalarize for equations
  • Loading branch information
YingboMa authored Nov 12, 2021
2 parents 30470fc + 8e9a9c4 commit b185494
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Symbolics"
uuid = "0c5d862f-8b57-4792-8d23-62f2024744c7"
authors = ["Shashi Gowda <[email protected]>"]
version = "4.0.0"
version = "4.0.1"

[deps]
ConstructionBase = "187b0558-2788-49d3-abe0-74a17ed4e7c9"
Expand Down
1 change: 1 addition & 0 deletions src/equations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Base.hash(a::Equation, salt::UInt) = hash(a.lhs, hash(a.rhs, salt))

Base.show(io::IO, eq::Equation) = print(io, eq.lhs, " ~ ", eq.rhs)

scalarize(eq::Equation) = scalarize(eq.lhs) ~ scalarize(eq.rhs)
SymbolicUtils.simplify(x::Equation; kw...) = simplify(x.lhs; kw...) ~ simplify(x.rhs; kw...)
function SymbolicUtils.substitute(x::Equation, rules; kw...)
sub = substituter(rules)
Expand Down

2 comments on commit b185494

@YingboMa
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/48708

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v4.0.1 -m "<description of version>" b1854942f42ccf733425521cb6a8c703b6baca05
git push origin v4.0.1

Please sign in to comment.