File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
name = " SymbolicUtils"
2
2
uuid = " d1185830-fcd6-423d-90d6-eec64667417b"
3
3
authors = [" Shashi Gowda" ]
4
- version = " 1.5.0 "
4
+ version = " 1.5.1 "
5
5
6
6
[deps ]
7
7
AbstractTrees = " 1520ce14-60c1-5f80-bbc7-55ef81b5835c"
Original file line number Diff line number Diff line change @@ -1149,7 +1149,7 @@ end
1149
1149
1150
1150
\ (a:: Number , b:: SN ) = b / a
1151
1151
1152
- / (a:: SN , b:: Number ) = (b isa Integer ? 1 // b : inv (b)) * a
1152
+ / (a:: SN , b:: Number ) = (isone ( abs (b)) ? b : (b isa Integer ? 1 // b : inv (b) )) * a
1153
1153
1154
1154
// (a:: Union{SN, Number} , b:: SN ) = a / b
1155
1155
Original file line number Diff line number Diff line change 301
301
@test (2.5 x/ 3 x). num == 2.5
302
302
@test (2.5 x/ 3 x). den == 3
303
303
@test (x/ 3 x) == 1 // 3
304
+ @test isequal (x / 1 , x)
305
+ @test isequal (x / - 1 , - x)
304
306
end
305
307
306
308
@testset " LiteralReal" begin
You can’t perform that action at this time.
0 commit comments