Skip to content

Commit

Permalink
Issue 408 (#409)
Browse files Browse the repository at this point in the history
* close issues #408 (missing Base qualifier)

* bump version
  • Loading branch information
jverzani authored Feb 4, 2021
1 parent bf1c77f commit d3fd8ef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "SymPy"
uuid = "24249f21-da20-56a4-8eb1-6a02cf4ae2e6"
version = "1.0.39"
version = "1.0.40"


[deps]
Expand Down
2 changes: 1 addition & 1 deletion src/mathops.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

\(x::SymbolicObject, y::SymbolicObject) = (y'/x')' # ?

inv(x::Sym) = x.__pow__(Sym(-1))
Base.inv(x::Sym) = x.__pow__(Sym(-1))

# special case Boolean; issue 351
# promotion for Boolean here is to 0 or 1, not False, True
Expand Down
5 changes: 5 additions & 0 deletions test/tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -713,4 +713,9 @@ end
@test 2 * M == M * 2
@test isa(M/α, SymMatrix)
@test isa* inv(M), SymMatrix)

## issue #408 with inv
@vars n integer=true positive=true
A = sympy.MatrixSymbol("A", n, n)
@test inv(A) == A.I
end

2 comments on commit d3fd8ef

@jverzani
Copy link
Collaborator 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/29397

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 v1.0.40 -m "<description of version>" d3fd8ef799132afdc94fef97bf6885e02676d384
git push origin v1.0.40

Please sign in to comment.