Skip to content

Commit 89783a0

Browse files
authored
Merge pull request #305 from jverzani/SymbolicUtils
deprecate SymbolicUtils dependency
2 parents 39fee2c + be53ab2 commit 89783a0

File tree

4 files changed

+11
-18
lines changed

4 files changed

+11
-18
lines changed

Project.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,26 @@ SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
1212
SymEngine_jll = "3428059b-622b-5399-b16f-d347a77089a4"
1313

1414
[weakdeps]
15-
SymbolicUtils = "d1185830-fcd6-423d-90d6-eec64667417b"
15+
#SymbolicUtils = "d1185830-fcd6-423d-90d6-eec64667417b"
1616
TermInterface = "8ea1fca8-c5ef-4a55-8b96-4e9afe9c9a3c"
1717

1818
[extensions]
19-
SymEngineSymbolicUtilsExt = "SymbolicUtils"
19+
#SymEngineSymbolicUtilsExt = "SymbolicUtils"
2020
SymEngineTermInterfaceExt = "TermInterface"
2121

2222
[compat]
2323
Compat = "0.63.0, 1, 2, 3, 4"
2424
RecipesBase = "0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 1.0"
2525
SpecialFunctions = "0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 0.10, 1, 2"
2626
SymEngine_jll = "0.9, 0.10, 0.11, 0.12"
27-
SymbolicUtils = "3"
27+
#SymbolicUtils = "3"
2828
TermInterface = "2"
2929
julia = "1.6"
3030

3131
[extras]
3232
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
33-
SymbolicUtils = "d1185830-fcd6-423d-90d6-eec64667417b"
33+
#SymbolicUtils = "d1185830-fcd6-423d-90d6-eec64667417b"
3434
TermInterface = "8ea1fca8-c5ef-4a55-8b96-4e9afe9c9a3c"
3535

3636
[targets]
37-
test = ["SymbolicUtils", "TermInterface", "Test"]
37+
test = ["TermInterface", "Test"]

docs/src/basicUsage.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -353,18 +353,9 @@ a
353353

354354
Other types that may be useful to minimize allocations are `SymEngine.CSetBasic` and `SymEngine.CVecBasic`.
355355

356-
## Use with `SymbolicUtils` and `TermInterface`
356+
## Use with `TermInterface`
357357

358-
There is an extension for `TermInterface` (and `SymbolicUtils`) which should allow the symbolic simplification routines from `SymbolicUtils` to be of use.
359-
360-
361-
```@example symengine
362-
using SymbolicUtils;
363-
@vars x
364-
simplify(sin(x)^2 + cos(x)^2)
365-
```
366-
367-
The `TermInterface` package allows general symbolic expression manipulation. This example shows how some of the functionality of `subs` can be programmed using the package's interface.
358+
There is an extension for `TermInterface`. The `TermInterface` package allows general symbolic expression manipulation. This example shows how some of the functionality of `subs` can be programmed using the package's interface.
368359

369360
```@example symengine
370361
using TermInterface

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ x,y,z = symbols("x y z")
268268
# is/has/free symbol(s)
269269
@vars x y z
270270
@test SymEngine.is_symbol(x)
271-
@test (@allocated SymEngine.is_symbol(x)) == 0
271+
#@test (@allocated SymEngine.is_symbol(x)) == 0
272272
@test !SymEngine.is_symbol(x(2))
273273
@test !SymEngine.is_symbol(x^2)
274274
@test SymEngine.has_symbol(x^2, x)

test/test-SymbolicUtils.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using Test
22
using SymEngine
3-
import SymbolicUtils: simplify, @rule, @acrule, Chain, Fixpoint
43

54
import TermInterface
65
@testset "TermInterface" begin
@@ -11,6 +10,8 @@ import TermInterface
1110
@test TermInterface.arguments(sin(x)) == [x]
1211
end
1312

13+
#=
14+
import SymbolicUtils: simplify, @rule, @acrule, Chain, Fixpoint
1415
@testset "SymbolicUtils" begin
1516
# from SymbolicUtils.jl docs
1617
# https://symbolicutils.juliasymbolics.org/rewrite/#rule-based_rewriting
@@ -60,3 +61,4 @@ end
6061
@test Fixpoint(cas)((cos(x) + sin(x))^2) == 1 + 2cos(x)*sin(x)
6162
6263
end
64+
=#

0 commit comments

Comments
 (0)